Generating keystroke with logitech g29 pedals
I’m trying to generate keystroke when using the pedals on the Logitech g29.
I’m guessing I need to create a hwdb rule (according to http://compsoc.man.ac.uk/~shep/pedals.html or http://blog.ssokolow.com/archives/2017/04/10/getting-your-cheap-chinese-usb-foot-pedal-doing-useful-things-on-linux/), but in my case the pedals does not generate a simple MSC_SCAN code, since they are analog and can generate values ranging from 0-255 for each pedals (or axis).
Exemple when calling sudo evtest /dev/input/event2 (some infos are removed to keep it concise):
Input device ID: bus 0x3 vendor 0x46d product 0xc24f version 0x111 Input device name: "Logitech G29 Driving Force Racing Wheel" Event code 2 (ABS_Z) Value 255 Min 0 Max 255 Event: time 1507816263.573865, type 3 (EV_ABS), code 2 (ABS_Z), value 255
/usr/lib/udev/hwdb.d/60-evdev.hwdb file, seems like I could use the
EVDEV_ABS_03 syntax, but I can’t understand what the
res stands for. Setting random values there does not seem to generate keystroke using
My current hwdb rule:
evdev:input:b0003v046DpC24F* EVDEV_ABS_03=::42 EVDEV_ABS_02=::44 EVDEV_ABS_01=::43
What am I missing? Am I supposed to use evdev_abs for this?