Page 1 of 1

Using Oolite with with arcade joysticks / digital joysticks

Posted: Fri Aug 03, 2012 12:59 pm
by bluntdischarge
Hi There,

I've got a digital/microswitch based joystick I'd like to use with Oolite (Qanba Q4) but I cannot set the Yaw/Roll to the joystick ( I imagine because they're buttons, not axes)

In the Joystick configuraiton menu of Oolite, the joystick is listed correctly as "Stick 1".
I can set all the other buttons in the configuration menu without issue.

Is there a way I can force this in the configuration file?

I've had a look at oolite.plist, and can see some of the button configuration's I've made. However, I can't make heads or tails of the syntax I need to have to get:

Roll - button A/B (matching to left/right on the joystick)
Pitch - button X/Z (matching to up/down on the joystick)

Also, is it possible to have a modifier button that for example, switches one of the axes/buttons between Yaw & Pitch while held down?

Thanks!

Re: Using Oolite with with arcade joysticks / digital joysti

Posted: Fri Aug 03, 2012 1:14 pm
by bluntdischarge
...and before anyone says anything, I'm fully aware the correct answer to this question is to purchase a CrotchMaster WingDestroyer 4 Hyper-Pro Turbo joystick...

Image

... or something similar, but it isn't an option at the moment.

Re: Using Oolite with with arcade joysticks / digital joysti

Posted: Fri Aug 03, 2012 2:16 pm
by Gimbal Locke
Hi bluntdischarge, welcome!

(Sorry, I cannot help you with joystick stuff, but I'm confident that somebody who can will post here soon.)

Re: Using Oolite with with arcade joysticks / digital joysti

Posted: Fri Aug 03, 2012 4:13 pm
by Commander McLane
bluntdischarge wrote:
Image
Wow! :shock:

Back in my days a joystick used to look like this:
Image

Re: Using Oolite with with arcade joysticks / digital joysti

Posted: Sat Aug 04, 2012 3:43 am
by bluntdischarge
Another thing, when I assign Left/Right/Up/Down to an arbitrary button they come up as:

stick 1 hat up
stick 1 hat down
stick 1 hat left
stick 1 hat right

Re: Using Oolite with with arcade joysticks / digital joysti

Posted: Sat Aug 04, 2012 12:16 pm
by JensAyton
bluntdischarge wrote:
Another thing, when I assign Left/Right/Up/Down to an arbitrary button they come up as:

stick 1 hat up
stick 1 hat down
stick 1 hat left
stick 1 hat right
That’s because your “stick” is identified as a direction pad, and dpads and joystick hat switches look the same from inside the computer. If it really conforms to the USB joystick specification, it also has at least two “dummy” analogue axes.

In any case, Oolite itself doesn’t support this kind of configuration. You’ll need external software to map the “stick” to emulated keystrokes.

Re: Using Oolite with with arcade joysticks / digital joysti

Posted: Sat Aug 04, 2012 12:44 pm
by bluntdischarge
Ahruman wrote:
bluntdischarge wrote:
Another thing, when I assign Left/Right/Up/Down to an arbitrary button they come up as:

stick 1 hat up
stick 1 hat down
stick 1 hat left
stick 1 hat right
That’s because your “stick” is identified as a direction pad, and dpads and joystick hat switches look the same from inside the computer. If it really conforms to the USB joystick specification, it also has at least two “dummy” analogue axes.

In any case, Oolite itself doesn’t support this kind of configuration. You’ll need external software to map the “stick” to emulated keystrokes.
Thanks for the pointers! After some more fiddling, I've discovered there's a "Home" button that when pushed, toggles the reporting of dummy axes.

Re: Using Oolite with with arcade joysticks / digital joysti

Posted: Sat Aug 04, 2012 1:48 pm
by Eric Walch
bluntdischarge wrote:

Image
You probably mapped the 'w' key to the right food pedal and the 's' key to the left food pedal. And seeing the shape of your left pedal, I assume you had some serious emergency breaks lately. :wink:

Nice joystick. :D

Re: Using Oolite with with arcade joysticks / digital joysti

Posted: Tue Oct 23, 2012 12:16 pm
by Diziet Sma
Ahruman wrote:
bluntdischarge wrote:
Another thing, when I assign Left/Right/Up/Down to an arbitrary
In any case, Oolite itself doesn’t support this kind of configuration. You’ll need external software to map the “stick” to emulated keystrokes.
Yep. for Linux, install joy2key using your package manager.