pretty code

顯示具有 翻頁器 標籤的文章。 顯示所有文章
顯示具有 翻頁器 標籤的文章。 顯示所有文章

2022年4月7日 星期四

Logitech R500 events

It maps to three input devices on Ubuntu Linux.

Logitech R500 Keyboard (Kobo Elipsa uses this mode)

Right - 1(EV_KEY), 106(KEY_RIGHT), 1
Left   - 1(EV_KEY), 105(KEY_LEFT), 1

8BitDo Zero 2 gamepad events

X-Input (X + start, then hold to press select)

Up    - 3(EV_ABS), 1(ABS_Y), 0
Down  - 3(EV_ABS), 1(ABS_Y), 65535
Left  - 3(EV_ABS), 0(ABS_X), 0
Right - 3(EV_ABS), 0(ABS_X), 65535

X     - 1(EV_KEY), 307(BTN_NORTH), 1
B     - 1(EV_KEY), 304(BTN_SOURTH), 1
Y     - 1(EV_KEY), 306(BTN_C), 1
A     - 1(EV_KEY), 305(BTN_EAST), 1
L     - 1(EV_KEY), 308(BTN_WEST), 1
R     - 1(EV_KEY), 309(BTN_Z), 1