View topic - Use your joystick with spring



All times are UTC + 1 hour


Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: 04 Sep 2009, 00:53 
Spring Developer

Joined: 24 Jun 2007, 07:34
Location: 50┬░ 56' N, 11┬░ 35' O
What do you need:
  • a recent version of spring
  • any joystick device: including gamepads, wheels etc.

How to do?
See attached sample widget:
Attachment:
joy_test.lua [1.28 KiB]
Downloaded 178 times


Top
 Offline Profile  
 
PostPosted: 04 Sep 2009, 01:43 
User avatar

Joined: 23 Oct 2004, 00:43
Is it support for only one joystick, or could it be used for implementing an arcade-game in Spring using Lua?


Top
 Offline Profile  
 
PostPosted: 04 Sep 2009, 13:51 
Map Creator
User avatar

Joined: 10 Mar 2006, 10:24
Location: waiting in line for The Expendables 2
yay

now all we need is an interior cockpit gadget and a tool that locks the players perspective to the units facing on aircraft


Top
 Offline Profile  
 
PostPosted: 04 Sep 2009, 13:56 
Spring Developer

Joined: 24 Jun 2007, 07:34
Location: 50┬░ 56' N, 11┬░ 35' O
  • 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


Top
 Offline Profile  
 
PostPosted: 04 Sep 2009, 16:33 

Joined: 19 Apr 2005, 18:23
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


Top
 Offline Profile  
 
PostPosted: 04 Sep 2009, 16:47 
User avatar

Joined: 16 Oct 2008, 17:54
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.


Top
 Offline Profile  
 
PostPosted: 04 Sep 2009, 16:49 
Spring Developer

Joined: 24 Jun 2007, 07:34
Location: 50┬░ 56' N, 11┬░ 35' O
Sheekel wrote:
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

Depends on the driver, if it is detected as mouse, gamepad or whatever else.


Top
 Offline Profile  
 
PostPosted: 04 Sep 2009, 16:52 
Spring Developer

Joined: 24 Jun 2007, 07:34
Location: 50┬░ 56' N, 11┬░ 35' O
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.


Top
 Offline Profile  
 
PostPosted: 05 Sep 2009, 11:07 
User avatar

Joined: 16 Oct 2008, 17:54
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.


Attachments:
infolog.txt [19.18 KiB]
Downloaded 121 times
Top
 Offline Profile  
 
PostPosted: 05 Sep 2009, 15:26 
Spring Developer

Joined: 24 Jun 2007, 07:34
Location: 50┬░ 56' N, 11┬░ 35' O
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.


Top
 Offline Profile  
 
PostPosted: 05 Sep 2009, 16:17 
User avatar

Joined: 16 Oct 2008, 17:54
Oh. OK.


Top
 Offline Profile  
 
PostPosted: 05 Sep 2009, 19:04 
Moderator

Joined: 22 Aug 2006, 15:19
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.


Top
 Offline Profile  
 
PostPosted: 19 Dec 2009, 20:14 
User avatar

Joined: 16 Oct 2008, 17:54
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?


Top
 Offline Profile  
 
PostPosted: 25 Dec 2009, 21:18 
User avatar

Joined: 16 Oct 2008, 17:54
No help? :(


Top
 Offline Profile  
 
PostPosted: 06 Jan 2010, 22:03 
User avatar

Joined: 16 Oct 2008, 17:54
Bump :|


Top
 Offline Profile  
 
PostPosted: 06 Jan 2010, 22:06 
Tournaments Moderator
User avatar

Joined: 08 Dec 2007, 17:39
Location: UK - England
Could you list a few devices in which this works for? How about a standard Xbox 360 Controller?


Top
 Offline Profile  
 
PostPosted: 06 Jan 2010, 22:14 
Spring Developer

Joined: 24 Jun 2007, 07:34
Location: 50┬░ 56' N, 11┬░ 35' O
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).


Top
 Offline Profile  
 
PostPosted: 07 Jan 2010, 10:13 
User avatar

Joined: 16 Oct 2008, 17:54
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. :P
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 :)


Top
 Offline Profile  
 
PostPosted: 20 Apr 2010, 17:28 

Joined: 20 Apr 2010, 17:24
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


Top
 Offline Profile  
 
PostPosted: 20 Apr 2010, 17:49 
User avatar

Joined: 22 Aug 2008, 15:29
Edit the infolog file into your post?


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.