Joypad Support?

8 replies [Last post]
mcfroogle
User offline. Last seen 18 weeks 4 days ago. Offline
Joined: 08/25/2010
Posts: 28

I read somewhere in the forum about joypad support?
Is it possible?
I've tried going to controls menu under the team's advanced setting but there are only mouse and keyboard commands listed.

I'm using the 0.9.13 official Windows release

Thanks in advance :-)

Spoon
User offline. Last seen 1 year 21 weeks ago. Offline
Joined: 09/05/2010
Posts: 10

I do believe that there is currently no support for anything other than plain old keyboard and mouse.

Inu
Inu's picture
User offline. Last seen 1 day 16 hours ago. Offline
Joined: 08/26/2009
Posts: 197

It does support other devices, haven't tried it myself, but as far as I know the XBox 360 controller is fully supported for example.

Smaxx
Smaxx's picture
User offline. Last seen 38 weeks 2 days ago. Offline
Joined: 04/29/2009
Posts: 391

The game should be able to detect your controller if it's plugged in and active before you launch the game (the frontend). However there's a small bug that can (depending on your system) bug gamepad controls (which is fixed in 0.9.14). The game should work with any gamepad your operating system (and SDL) supports. XBox360 controllers should be detected as such and present you the correct button names instead of numbered buttons.

Inu
Inu's picture
User offline. Last seen 1 day 16 hours ago. Offline
Joined: 08/26/2009
Posts: 197

This makes me wanna add a Playstation Dualshock button layout to it too now. :P

Smaxx
Smaxx's picture
User offline. Last seen 38 weeks 2 days ago. Offline
Joined: 04/29/2009
Posts: 391

Provide the string reported by SDL (can be seen in debug0.txt) and a key mapping like "button 0 = ..." and I'll try to add it.

mcfroogle
User offline. Last seen 18 weeks 4 days ago. Offline
Joined: 08/25/2010
Posts: 28

Thanks for the help and the amazingly quick responses, Hedgewars has such a great support community :-)

It turns out I was plugging in the controller after loading Hedgewars I think.

Problem is I have a different problem now :-s My joy pad has 2 joysticks, so there's 4 axis, I've tried setting the mouse/camera movement to 2 axis but for some reason the camera goes crazy and flies to the side of the screen, so I can't see any of the game play.

There are no conflicting button,
And the Joysticks are properly synchronised (forgotten the proper word)

Just in case it's needed I'm using a Logitech Duel Action,
So Inu the playstation layout would be great implemented in the game because the controller is pretty much a clone of it.

Thanks in advance

Inu
Inu's picture
User offline. Last seen 1 day 16 hours ago. Offline
Joined: 08/26/2009
Posts: 197

I'll check they key layout this week or next weekend, classes are just now restarting so I'll probably have time.

Smaxx
Smaxx's picture
User offline. Last seen 38 weeks 2 days ago. Offline
Joined: 04/29/2009
Posts: 391

mcfroogle: That's the issue mentioned above. Wait for 0.9.14 - it should work by then.

Copyright © 2004-2011 Hedgewars Project. All rights reserved.