Changes in uspace/drv/usbhid/subdrivers.c [c7fbb90:d3b6d5e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/usbhid/subdrivers.c
rc7fbb90 rd3b6d5e 38 38 #include "usb/classes/hidpath.h" 39 39 40 #include "lgtch-ultrax/lgtch-ultrax.h" 40 //#include "lgtch-ultrax/lgtch-ultrax.h" 41 #include "multimedia/multimedia.h" 41 42 #include "mouse/mousedev.h" 42 43 43 44 static usb_hid_subdriver_usage_t path_kbd[] = { 44 {USB_HIDUT_PAGE_KEYBOARD, 0}, 45 {USB_HIDUT_PAGE_GENERIC_DESKTOP, 46 USB_HIDUT_USAGE_GENERIC_DESKTOP_KEYBOARD}, 45 47 {0, 0} 46 48 }; 47 49 48 static usb_hid_subdriver_usage_t path_mouse 2[] = {49 {USB_HIDUT_PAGE_GENERIC_DESKTOP, USB_HIDUT_USAGE_GENERIC_DESKTOP_ X},50 static usb_hid_subdriver_usage_t path_mouse[] = { 51 {USB_HIDUT_PAGE_GENERIC_DESKTOP, USB_HIDUT_USAGE_GENERIC_DESKTOP_MOUSE}, 50 52 {0, 0} 51 53 }; 52 54 53 static usb_hid_subdriver_usage_t lgtch_path[] = {54 { 0xc, 0},55 static usb_hid_subdriver_usage_t multim_key_path[] = { 56 {USB_HIDUT_PAGE_CONSUMER, USB_HIDUT_USAGE_CONSUMER_CONSUMER_CONTROL}, 55 57 {0, 0} 56 58 }; … … 60 62 path_kbd, 61 63 -1, 62 USB_HID_PATH_COMPARE_END 63 | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY, 64 USB_HID_PATH_COMPARE_ANYWHERE, 64 65 -1, 65 66 -1, … … 73 74 }, 74 75 { 75 lgtch_path,76 multim_key_path, 76 77 1, 77 USB_HID_PATH_COMPARE_END 78 | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY, 79 0x046d, 80 0xc30e, 78 USB_HID_PATH_COMPARE_ANYWHERE, 79 -1, 80 -1, 81 81 { 82 .init = usb_ lgtch_init,83 .deinit = usb_ lgtch_deinit,84 .poll = usb_ lgtch_polling_callback,82 .init = usb_multimedia_init, 83 .deinit = usb_multimedia_deinit, 84 .poll = usb_multimedia_polling_callback, 85 85 .poll_end = NULL 86 86 } 87 87 }, 88 88 { 89 path_mouse 2,89 path_mouse, 90 90 -1, 91 USB_HID_PATH_COMPARE_END 92 | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY, 91 USB_HID_PATH_COMPARE_ANYWHERE, 93 92 -1, 94 93 -1,
Note:
See TracChangeset
for help on using the changeset viewer.