Jan 6, 2010

How to get event numbers

$ ls /dev/input/by-id

OR
$ ls /dev/input/by-id -l
usb-045e_Microsoft_Natural_Keyboard_Pro-event-kbd
usb-Sony_Computer_Entertainment_Inc._SCE_USB_MOUSE-event-mouse
usb-Sony_Computer_Entertainment_Inc._SCE_USB_MOUSE-mouse
usb-THRUSTMASTER_2_in_1_DT-event-joystick

$ file /dev/input/by-id/usb-045e_Microsoft_Natural_Keyboard_Pro-event-kbd

/dev/input/by-id/usb-045e_Microsoft_Natural_Keyboard_Pro-event-kbd: symbolic
link to `../event1'

No comments:

Post a Comment

Followers