Joysticks

Joysticks

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Blue_Falcon
Posts: 155
Joined: 16 Oct 2008, 18:54

Joysticks

Post by Blue_Falcon »

Sorry if this is in the wrong section, but I didn't see a more suitable one...

Are the joyup and joydown events launched by movement of the Y axis of the joystick, and joyleft and joyright by the X axis? Or is neither implemented yet?

Thanks in advance,
Blue Falcon
xyz
Posts: 152
Joined: 29 Nov 2008, 16:06

Re: Joysticks

Post by xyz »

hi,
I don't know if the joystick engine was implemented or not, but you can use EventGhost to map the events to key presses.
User avatar
Blue_Falcon
Posts: 155
Joined: 16 Oct 2008, 18:54

Re: Joysticks

Post by Blue_Falcon »

There definitely are events (see uikeys.txt) but what triggers them?
joyup, joydown, joyleft, joyright
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Joysticks

Post by CarRepairer »

Use joy2key to map your joystick actions to key presses and choose the keypresses according to uikeys.txt.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Joysticks

Post by Auswaschbar »

Commit newsfeed wrote:enable optional use of joystick
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Joysticks

Post by CarRepairer »

Ah I didn't know about that.
User avatar
Blue_Falcon
Posts: 155
Joined: 16 Oct 2008, 18:54

Re: Joysticks

Post by Blue_Falcon »

OK thanks for the help :)

EDIT: Where do I enable it? Can't find it in SpringSettings.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Joysticks

Post by Auswaschbar »

Blue_Falcon wrote:OK thanks for the help :)

EDIT: Where do I enable it? Can't find it in SpringSettings.
It was intruduced right now, you need to wait for next release.
User avatar
Blue_Falcon
Posts: 155
Joined: 16 Oct 2008, 18:54

Re: Joysticks

Post by Blue_Falcon »

Oh, OK. Thanks.

(Any idea when that will be?)
xyz
Posts: 152
Joined: 29 Nov 2008, 16:06

Re: Joysticks

Post by xyz »

You can use the latest testbuld from here: http://buildbot.eat-peet.net/spring/
but you will probably have to wait until tomorrow, to have the feature in.
User avatar
Blue_Falcon
Posts: 155
Joined: 16 Oct 2008, 18:54

Re: Joysticks

Post by Blue_Falcon »

No, I mean the next release (one that will also be uploaded in the ubuntu repo)
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Joysticks

Post by Auswaschbar »

Post Reply

Return to “Engine”