pqrs-org / Karabiner-Elements

Karabiner-Elements is a powerful tool for customizing keyboards on macOS
https://karabiner-elements.pqrs.org/
The Unlicense
18.98k stars 840 forks source link

Joystick / Gamepad support Feature request #2621

Open runeb68 opened 3 years ago

runeb68 commented 3 years ago

Using 12.9. MacOS 10.13.6 High Sierra I Found that my joystick is listed as a mouse (USB competition pro, "USB 2A4K Gamepad (MOSIC )") and when checked the mouse pointer moves to the far left or the top of the screen when I move left/right or up/down. I would like it to be detected as such and be able to map the joystick buttons and movements to keys (or other buttons). Probably I would already be able to do that if I would know which "key" is to be selected to catch the movement if left/right or up/down is not the same. However the movements are not logged. This might also make the old saitec USB "PC Dash 2" boards useful again, which have a 7x5 button matrix where you could put a printed descriptive overlay on top of the buttons.

[2021-02-07 17:26:40.242] [info] [grabber] USB 2A4K  GamePad (device_id:4294972343) is grabbed.
[2021-02-07 17:26:40.244] [info] [observer] matching device:
[2021-02-07 17:26:40.244] [info] [observer]   registry_entry_id: 4294972470
[2021-02-07 17:26:40.244] [info] [observer]   manufacturer: pqrs.org
[2021-02-07 17:26:40.244] [info] [observer]   product: Karabiner VirtualHIDPointing
[2021-02-07 17:26:40.244] [info] [observer]   vendor_id: 5824
[2021-02-07 17:26:40.244] [info] [observer]   product_id: 10202
[2021-02-07 17:26:40.244] [info] [observer]   location_id: 0x0
[2021-02-07 17:26:40.244] [info] [observer]   serial_number: pqrs.org:org_pqrs_driver_Karabiner_VirtualHIDDevice_VirtualHIDPointing_v061000
[2021-02-07 17:26:40.244] [info] [observer]   is_keyboard: false
[2021-02-07 17:26:40.244] [info] [observer]   is_pointing_device: true
xhenner commented 3 years ago

Same thing here, with an old saitek PGCU. The buttons are usable with karabiner, but the joystick part is all over the place. I managed to use it with a gamepad software, but if I could use it with karabiner, it will be great and limit the number of software I have running

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.