How can I map the switches of a joystick on Ubuntu linux?
Hello,
I am wanting to try mapping the switches on a CH Throttle Pro joystick to act as keyboard keys. My OS of choice is Ubuntu linux -why- I am trying to find a typing solution to use when lying flat on my back speech isn`t an option, neither is maintaining a raised hand position so speech to text and almost all keyboards fail to qualify. when upright I need to see where I am pressing to accurately type, when lying on my back this isn`t feasible. -so- The textured well separated keys of a throttle/flightstick seem well suited to typing without look at where fingers strike while being fully reclined. * so far I have used dmesg to see that the throttle is recognised as being plugged in $ dmesg|grep THROTTLE [ 6413.129502] usb 1-8: Product: CH PRO THROTTLE USB [ 6413.156721] input: CH PRODUCTS CH PRO THROTTLE USB as /devices/pci0000:00/0000:00:01.3/0000:01:00.0/usb1/1-8/1-8:1.0/0003:068E:00F1.0002/input/input17 [ 6413.157019] hid-generic 0003:068E:00F1.0002: input,hidraw1: USB HID v1.00 Joystick [CH PRODUCTS CH PRO THROTTLE USB ] on usb-0000:01:00.0-8/input0 [19392.979246] usb 5-3: Product: CH PRO THROTTLE USB [19392.990885] input: CH PRODUCTS CH PRO THROTTLE USB as /devices/pci0000:00/0000:00:07.1/0000:08:00.3/usb5/5-3/5-3:1.0/0003:068E:00F1.0003/input/input18 [19392.991082] hid-generic 0003:068E:00F1.0003: input,hidraw1: USB HID v1.00 Joystick [CH PRODUCTS CH PRO THROTTLE USB ] on usb-0000:08:00.3-3/input0 * and tried xev to check for response to switch presses = no responses to any throttle input, my keyboard and mouse show up fine I don`t know where to start with recognising joystick input nor how to remap the switch responses to deliver keystrokes. I would for testing also have a usb keyboard and usb mouse connected which I don`t want to misplace but rather have all three input devices functioning, the keyboard and throttle recognised for keystrokes. any advice and guides appreciated Douglas |
If you're using a recent Ubuntu version, then libinput should be handling input events.
For Xorg-related drivers, the input drivers in use can be determined with... Code:
grep "Using input" /var/log/Xorg.0.log https://wiki.archlinux.org/index.php...ton_re-mapping |
Thankyou for the reply
my current OS is an up to date Ubuntu 18.04.2 LTS -libinput wasn`t present- Quote:
`xinput list` and `libinput list-devices` Quote:
the dmesg shows them all fine, keyboard mounted as input/input2, the throttle as input/input3 Quote:
(all three devices are connected via usb direct to the rear panel of the motherboard, each of them with at least one led powered up). any suggestions? |
The following commands will list devices present
Code:
xinput list Code:
libinput list-devices Code:
xinput get-button-map <device_name> Code:
xinput set-button-map <device_name> ..... |
All times are GMT -5. The time now is 09:51 PM. |