Ubuntu keyboard scancodes

=evtest=

evtest is all you need, this is getting scan codes from Olympus foot treadle.

$ sudo evtest No device specified, trying to scan all of /dev/input/event* Available devices: /dev/input/event0:	Power Button /dev/input/event1:	Power Button /dev/input/event2:	Lite-On Technology Corp. HP Basic USB Keyboard /dev/input/event3:	Logitech USB Laser Mouse /dev/input/event4:	HDA ATI HDMI HDMI/DP,pcm=3 /dev/input/event5:	HDA Intel PCH Mic /dev/input/event6:	HDA Intel PCH Line /dev/input/event7:	HDA Intel PCH Line Out /dev/input/event8:	HDA Intel PCH Front Headphone /dev/input/event9:	HP WMI hotkeys /dev/input/event10:	OLYMPUS CORPORATION HID FootSwitch RS Series Select the device event number [0-10]: 10 Input driver version is 1.0.1 Input device ID: bus 0x3 vendor 0x7b4 product 0x218 version 0x111 Input device name: "OLYMPUS CORPORATION HID FootSwitch RS Series" Supported events: Event type 0 (EV_SYN) Event type 1 (EV_KEY) Event code 256 (BTN_0) Event code 257 (BTN_1) Event code 258 (BTN_2) Event code 259 (BTN_3) Event code 260 (BTN_4) Event code 261 (BTN_5) Event code 262 (BTN_6) Event code 263 (BTN_7) Event code 264 (BTN_8) Event code 265 (BTN_9) Event code 266 (?) Event code 267 (?) Event code 268 (?) Event code 269 (?) Event code 270 (?) Event code 271 (?) Event code 272 (BTN_LEFT) Event code 273 (BTN_RIGHT) Event code 274 (BTN_MIDDLE) Event code 275 (BTN_SIDE) Event code 276 (BTN_EXTRA) Event code 277 (BTN_FORWARD) Event code 278 (BTN_BACK) Event code 279 (BTN_TASK) Event code 280 (?) Event code 281 (?) Event code 282 (?) Event code 283 (?) Event code 284 (?) Event code 285 (?) Event code 286 (?) Event code 287 (?) Event type 4 (EV_MSC) Event code 4 (MSC_SCAN) Properties: Testing ... (interrupt to exit) Event: time 1497865864.354485, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90011 Event: time 1497865864.354485, type 1 (EV_KEY), code 272 (BTN_LEFT), value 1 Event: time 1497865864.354485, -- SYN_REPORT Event: time 1497865864.474490, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90011 Event: time 1497865864.474490, type 1 (EV_KEY), code 272 (BTN_LEFT), value 0 Event: time 1497865864.474490, -- SYN_REPORT Event: time 1497865864.970488, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90012 Event: time 1497865864.970488, type 1 (EV_KEY), code 273 (BTN_RIGHT), value 1 Event: time 1497865864.970488, -- SYN_REPORT Event: time 1497865865.026461, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90012 Event: time 1497865865.026461, type 1 (EV_KEY), code 273 (BTN_RIGHT), value 0 Event: time 1497865865.026461, -- SYN_REPORT Event: time 1497865865.418489, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90012 Event: time 1497865865.418489, type 1 (EV_KEY), code 273 (BTN_RIGHT), value 1 Event: time 1497865865.418489, -- SYN_REPORT Event: time 1497865865.506436, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90012 Event: time 1497865865.506436, type 1 (EV_KEY), code 273 (BTN_RIGHT), value 0 Event: time 1497865865.506436, -- SYN_REPORT Event: time 1497865866.090489, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90013 Event: time 1497865866.090489, type 1 (EV_KEY), code 274 (BTN_MIDDLE), value 1 Event: time 1497865866.090489, -- SYN_REPORT Event: time 1497865866.282499, type 4 (EV_MSC), code 4 (MSC_SCAN), value 90013 Event: time 1497865866.282499, type 1 (EV_KEY), code 274 (BTN_MIDDLE), value 0 Event: time 1497865866.282499, -- SYN_REPORT

=comments=