Abxy, Shoulder Buttons In Sdl


arrrgh

Newbie
Joined
Jan 7, 2009
Messages
416
Location
Australia
Just a quick question, how are the shoulder buttons and ABXY buttons recognised as in SDL?
 
arrrgh posted on May 16 2009 at 07:33 AM said:
Just a quick question, how are the shoulder buttons and ABXY buttons recognised as in SDL?
They are key presses, are you looking for the actual codes?
 
Last edited by a moderator:
Dimacus posted on May 16 2009 at 09:57 AM said:
I'm guessing that he is asking if they are keyboard or joystick key preses.
Now that I think about it, how do you get the values from the analog controls, are they separate joysticks?
All of the buttons are detected as keyboard presses.
The analog nubs are separate joysticks. I have not used them in SDL, only directly
 
Last edited by a moderator:
PokeParadox posted on May 16 2009 at 11:36 PM) It would be nice if someone that knows could report the SDL_Keys used for each button (obviously not the keyboard. said:
. I'm still unsure of this myself.
This is what I meant in the first place, sorry for not being clear enough.
 
Last edited by a moderator:
:huh: Perhaps it's not seeing them as keypresses? Maybe it's seen as a joystick button or something.
 
arrrgh posted on May 16 2009 at 10:37 AM said:
:huh: Perhaps it's not seeing them as keypresses? Maybe it's seen as a joystick button or something.
the event was triggered, just the sym was 0, which is unknown key, sounds like an SDL issue
 
Last edited by a moderator:
PokeParadox posted on May 16 2009 at 12:01 PM said:
Pickle posted on May 16 2009 at 03:35 PM said:
hmm, i just tried them and Event.key.keysym.sym is always 0
Just a little off topic, but maybe this is what is causing the arithmetic error in PPanic! ?
the float exception? if so not sure yet
 
Last edited by a moderator:
If the keys in SDL aren't working, how was the version of Quake that Craig was playing receive input? Was it using the kernel interface?
 
arrrgh posted on May 16 2009 at 08:51 PM said:
If the keys in SDL aren't working, how was the version of Quake that Craig was playing receive input? Was it using the kernel interface?
q1 ans q2 are using code I wrote that looks at kernel interface, q3 uses X for input, which probably uses the kernel correctly too
 
Last edited by a moderator:
Aethix:
Im guessing that SDL will be fixed in time for release, or if it isn't it probably will be fixed quiet soon after release.
So in SDL all the buttons (including D-Pad,ABXY and L/R) are keyboard buttons you just have to remap them, if need be.
The analog nubs are a different story, either you need to own one or two joysticks or you have to use some sort of joystick emulator.
 
Back
Top