Page 1 of 2
Use your joystick with spring
Posted: 04 Sep 2009, 01:53
by Auswaschbar
What do you need:
- a recent version of spring
- any joystick device: including gamepads, wheels etc.
How to do?
See attached sample widget:
Re: Use your joystick with spring
Posted: 04 Sep 2009, 02:43
by Pxtl
Is it support for only one joystick, or could it be used for implementing an arcade-game in Spring using Lua?
Re: Use your joystick with spring
Posted: 04 Sep 2009, 14:51
by 1v0ry_k1ng
yay
now all we need is an interior cockpit gadget and a tool that locks the players perspective to the units facing on aircraft
Re: Use your joystick with spring
Posted: 04 Sep 2009, 14:56
by Auswaschbar
- in "FPS Camera", you can fly around with joystick (even throttle works)
- in direct controlling ground units, you can rotate and pitch, throttle does not work here yet
- didn't tested what happens with air direct control
Re: Use your joystick with spring
Posted: 04 Sep 2009, 17:33
by Sheekel
Do you supposed this would work with a 3D connexion "space explorer" tool?
http://www.3dconnexion.com/3dmouse/spaceexplorer.php
I've got one lying around at work, would be cool to use it in spring i guess
Re: Use your joystick with spring
Posted: 04 Sep 2009, 17:47
by Blue_Falcon
Wow, looks good!
But...
It doesn't react to any joystick events for me. I've enabled it, but the functions don't seem to be triggered properly. The joystick works in other programs.
Re: Use your joystick with spring
Posted: 04 Sep 2009, 17:49
by Auswaschbar
Depends on the driver, if it is detected as mouse, gamepad or whatever else.
Re: Use your joystick with spring
Posted: 04 Sep 2009, 17:52
by Auswaschbar
Blue_Falcon wrote:Wow, looks good!
But...
It doesn't react to any joystick events for me. I've enabled it, but the functions don't seem to be triggered properly. The joystick works in other programs.
Infolog should say some stuff about joystick. Please post.
Re: Use your joystick with spring
Posted: 05 Sep 2009, 12:07
by Blue_Falcon
Here's my infolog. I did a quick skim through, but the only thing I could find was information on the fact that it had loaded the widget.
Re: Use your joystick with spring
Posted: 05 Sep 2009, 16:26
by Auswaschbar
Blue_Falcon wrote:Here's my infolog. I did a quick skim through, but the only thing I could find was information on the fact that it had loaded the widget.
With recent, I mean one of the development versions, its not in the release.
Re: Use your joystick with spring
Posted: 05 Sep 2009, 17:17
by Blue_Falcon
Oh. OK.
Re: Use your joystick with spring
Posted: 05 Sep 2009, 20:04
by imbaczek
tested this, there roll control should be changed to yaw, or at least both should be added. currently the fps camera works rather weird.
also, there absolutely has to be a way of rebinding axes, my gamepad has z-axis inverted.
Re: Use your joystick with spring
Posted: 19 Dec 2009, 20:14
by Blue_Falcon
Sorry for necro.
It's working now, the joy_test.lua script works and registers all the events, but how can I configure this to control units in FPS mode or the camera?
Re: Use your joystick with spring
Posted: 25 Dec 2009, 21:18
by Blue_Falcon
No help?

Re: Use your joystick with spring
Posted: 06 Jan 2010, 22:03
by Blue_Falcon
Bump

Re: Use your joystick with spring
Posted: 06 Jan 2010, 22:06
by Jazcash
Could you list a few devices in which this works for? How about a standard Xbox 360 Controller?
Re: Use your joystick with spring
Posted: 06 Jan 2010, 22:14
by Auswaschbar
JAZCASH wrote:Could you list a few devices in which this works for? How about a standard Xbox 360 Controller?
Should work for any joystick or gamepad device.
Blue_Falcon wrote:It's working now, the joy_test.lua script works and registers all the events, but how can I configure this to control units in FPS mode or the camera?
Integrating it into any of the existing lua camera widgets should be easy. Using it to control engine camera or units isn't (or at least I don't know how).
Re: Use your joystick with spring
Posted: 07 Jan 2010, 10:13
by Blue_Falcon
Auswaschbar wrote:JAZCASH wrote:Could you list a few devices in which this works for? How about a standard Xbox 360 Controller?
Should work for any joystick or gamepad device.
That you have the drivers for.
Auswaschbar wrote:
Blue_Falcon wrote:It's working now, the joy_test.lua script works and registers all the events, but how can I configure this to control units in FPS mode or the camera?
Integrating it into any of the existing lua camera widgets should be easy. Using it to control engine camera or units isn't (or at least I don't know how).
Ah, ok.

Thanks anyway :)
Re: Use your joystick with spring
Posted: 20 Apr 2010, 18:28
by Rossendale
Hey,
Ok, i put the lua in etc etc, and on running it in game - it registers my joystick, displaying inputted joystick movement on screen, yet does nothing to the map. It's the joystick of a Logitech G13 btw, if that helps at all
Also i don't know how to write lua for spring at the current time
Re: Use your joystick with spring
Posted: 20 Apr 2010, 18:49
by Sucky_Lord
Edit the infolog file into your post?