I'm using it as a standalone USB device. By default, the pedals map to left/middle/right click. Ideally I'd map them Esc, Ctrl, and Shift.
Although xinput lists it as a keyboard (and also as a mouse), I don't see how to configure it like one.
$ xinput list | grep pedal
↳ Kinesis Footpedal id=10 [slave pointer (2)]
↳ Kinesis Footpedal id=9 [slave keyboard (3)]
I tried mapping its mouse buttons to unused indices (xinput set-button-map 10 10 11 12
) and then using imwheel to map the results to something I actually want, but despite the docs imwheel doesn't seem to support making hotkeys for anything beyond the normal mouse buttons (left/right/middle/scrollup/scrolldown/thumb1/thumb2).