1 /* 2 * Copyright (c) 1992 OMRON Corporation. 3 * Copyright (c) 1992, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * OMRON Corporation. 8 * 9 * %sccs.include.redist.c% 10 * 11 * @(#)kbdreg.h 8.1 (Berkeley) 06/10/93 12 */ 13 14 /* 15 * kbdreg.h -- 16 * 17 */ 18 19 struct kbd_keymap { 20 int km_type; 21 int km_code[2]; 22 }; 23 24 #define KC_CHAR 0x000000FF 25 #define KC_TYPE 0x0000FF00 26 #define KC_CODE 0x00000000 27 #define KC_SHIFT 0x00000100 28 #define KC_IGNORE 0x0000FF00 29 30 #define KS_SHIFT 0 31 #define KS_CTRL 1 32 #define KS_META 2 33