Changeset 11797d5 in mainline
- Timestamp:
- 2011-01-21T16:37:26Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3ee48f2, 9097c16a
- Parents:
- 7d540c8
- Location:
- uspace/drv/usbkbd
- Files:
-
- 1 added
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbkbd/Makefile
r7d540c8 r11797d5 29 29 USPACE_PREFIX = ../.. 30 30 LIBS = $(LIBDRV_PREFIX)/libdrv.a $(LIBUSB_PREFIX)/libusb.a 31 EXTRA_CFLAGS += -I$(LIBDRV_PREFIX)/include -I$(LIBUSB_PREFIX)/include 31 EXTRA_CFLAGS += -I$(LIBDRV_PREFIX)/include -I$(LIBUSB_PREFIX)/include -I. 32 32 BINARY = usbkbd 33 SRV_KBD = $(USPACE_PREFIX)/srv/hid/kbd 33 34 34 35 SOURCES = \ … … 37 38 descdump.c \ 38 39 conv.c \ 39 us_qwerty.c 40 us_qwerty.c \ 41 us_dvorak.c \ 42 cz.c 40 43 41 44 include $(USPACE_PREFIX)/Makefile.common 45 46 us_qwerty.c: 47 ln -snf $(SRV_KBD)/layout/$@ $@ 48 49 us_dvorak.c: 50 ln -snf $(SRV_KBD)/layout/$@ $@ 51 52 cz.c: 53 ln -snf $(SRV_KBD)/layout/$@ $@ 54 55 -
uspace/drv/usbkbd/conv.c
r7d540c8 r11797d5 30 30 #include "conv.h" 31 31 32 static int scanmap_simple[ ] = {32 static int scanmap_simple[255] = { 33 33 34 34 // [0x29] = KC_BACKTICK, … … 56 56 [0x16] = KC_S, 57 57 [0x17] = KC_T, 58 [0x1 2] = KC_U,58 [0x18] = KC_U, 59 59 [0x19] = KC_V, 60 60 [0x1a] = KC_W, -
uspace/drv/usbkbd/main.c
r7d540c8 r11797d5 134 134 }; 135 135 136 // TODO: put to device?137 136 static int active_layout = 0; 138 137 … … 189 188 printf("keycode: %u\n", key); 190 189 */ 191 /*190 192 191 if (type == KEY_PRESS && (mods & KM_LCTRL) && 193 192 key == KC_F1) { … … 210 209 return; 211 210 } 212 */211 213 212 ev.type = type; 214 213 ev.key = key; … … 236 235 */ 237 236 static void usbkbd_process_keycodes(const uint8_t *key_codes, size_t count, 238 237 uint8_t modifiers, void *arg) 239 238 { 240 239 printf("Got keys: ");
Note:
See TracChangeset
for help on using the changeset viewer.