opentrack / opentrack

Head tracking software for MS Windows, Linux, and Apple OSX
3.65k stars 452 forks source link

Map Keyboard shortcats (Center & Toggle) to joystick buttos #103

Closed sasam closed 9 years ago

sasam commented 9 years ago

Is it possible to add "Keyboard shortcuts" mapping to arbitrary joystick buttons?

KyokushinPL commented 9 years ago

Good idea. It could be very useful to add center button or zero/toggle to hotas system.

Antmax commented 9 years ago

Most HOTAS and joysticks come with profiler software that will let you set keyboard actions for button presses. My X52, Wingman Extreme 3D and old driving wheel and various mice let you do this. My 360 controller doesn't but there are third party tools that will enable you to. Pinnacle  Just mentioning it, not saying it shouldn't be added to Opentrack..

 On Saturday, December 6, 2014 5:28 PM, Andrew <notifications@github.com> wrote:

Good idea. It could be very useful to add center button or zero/toggle to hotas system.— Reply to this email directly or view it on GitHub.

sasam commented 9 years ago

I have MS SideWinder FF2. Do you know something useful for them?

sthalik commented 9 years ago

It's too much pain since the same functionality should be exposed for Linux and OSX. Unless someone volunteers to add the functionality for all three operating systems like that.

sasam commented 9 years ago

Good How2 example for Linux can be found here: https://github.com/flosse/linuxconsole/blob/master/utils/jstest.c

sthalik commented 9 years ago

It's too much work for a rarely-requested feature. If you want it, implement for the three platforms and send a pull request.

FlyingCircus- commented 9 years ago

The most logical solution to achieve this has been already said in the thread: most (if not all) game controllers come with software to assign keybindings, so you can assign your button of choice to a character included in the OpenTrack list. For example, a button in my HOTAS system is set to emulate the numeric key "0" while I've set this very key in OpenTrack to center the view.

sasam commented 9 years ago

It will be great to have native support for this feature (without other mapping application). I found and successfully tested this one: http://joytokey.net/en/

2014-12-07 18:50 GMT+01:00 FlyingCircus- notifications@github.com:

The most logical solution to achieve this has been already said in the thread: most (if not all) game controllers come with software to assign keybindings, so you can assign your button of choice to a character included in the OpenTrack list. For example, a button in my HOTAS system is set to emulate the numeric key "0" while I've set this very key in OpenTrack to center the view.

— Reply to this email directly or view it on GitHub https://github.com/opentrack/opentrack/issues/103#issuecomment-65946018.

sthalik commented 9 years ago

@sasam that makes opentrack require kernel headers on Linux, that it doesn't require right now.

If someone does the work on OSX and Linux I'll accept it but won't do it myself.