Joystick/gamepad deadzone

News and discussion of the PC port of Oolite.

Moderators: winston, another_commander

User avatar
maaarcooose
---- E L I T E ----
---- E L I T E ----
Posts: 397
Joined: Sun May 29, 2011 9:36 pm
Location: Devon, UK
Contact:

Joystick/gamepad deadzone

Post by maaarcooose »

Hi everyone.

Just recently started playing, used to play elite on the BBC back when I was young.

Is there any way to set the deadzone on the gamepad analogue sticks on oolite?
I'm using an Xbox wired controller. XBCD seems to not work in win 7.

!m!
User avatar
maaarcooose
---- E L I T E ----
---- E L I T E ----
Posts: 397
Joined: Sun May 29, 2011 9:36 pm
Location: Devon, UK
Contact:

Re: Joystick/gamepad deadzone

Post by maaarcooose »

From reading the change notes on previous versions, I see that a deadzone was put back in.
Is that only for certain controllers?

Typically the deadzone seems to be configurable in the Linux version of the xbox controller driver but not in the windows one.

Typical.

!m!
Trading computers and writing stuff....
Website: http://www.theramist.co.uk/
OOliteInfo: http://www.theramist.co.uk/ooliteinfo/oo.php
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6681
Joined: Wed Feb 28, 2007 7:54 am

Re: Joystick/gamepad deadzone

Post by another_commander »

I'm afraid this is a driver related thing. As for the deadzone that was put back in, it is a generic setting for all joysticks that the game can see.
User avatar
CommonSenseOTB
---- E L I T E ----
---- E L I T E ----
Posts: 1397
Joined: Wed May 04, 2011 10:42 am
Location: Saskatchewan, Canada

Re: Joystick/gamepad deadzone

Post by CommonSenseOTB »

Welcome maaarcooose! :)
Take an idea from one person and twist or modify it in a different way as a return suggestion so another person can see a part of it that can apply to the oxp they are working on.


CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
User avatar
maaarcooose
---- E L I T E ----
---- E L I T E ----
Posts: 397
Joined: Sun May 29, 2011 9:36 pm
Location: Devon, UK
Contact:

Re: Joystick/gamepad deadzone

Post by maaarcooose »

Any possibility of a moddable parameter in the configuration file to set the deadzone on individual axies?

I'm feeling either a source code hack or a hardware hack coming on.
Looking at the source might help me get my ObjC head on for a bit of iPhone programming.

Loving this game by the way. It seems like I've been searching for that elusive Elite replacement for years. I think Tacheyon the fringe came close in some ways and X3 had possibilities but nothing really did it for me.

!m!
Trading computers and writing stuff....
Website: http://www.theramist.co.uk/
OOliteInfo: http://www.theramist.co.uk/ooliteinfo/oo.php
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6681
Joined: Wed Feb 28, 2007 7:54 am

Re: Joystick/gamepad deadzone

Post by another_commander »

maaarcooose wrote:
Any possibility of a moddable parameter in the configuration file to set the deadzone on individual axies?

I'm feeling either a source code hack or a hardware hack coming on.
Looking at the source might help me get my ObjC head on for a bit of iPhone programming.
It would be pretty easy making the deadzone setting a configuration file parameter instead of a constant. Not so sure how easy it would be doing it on individual axes, though. This could be a feature request for post-1.76.
User avatar
maaarcooose
---- E L I T E ----
---- E L I T E ----
Posts: 397
Joined: Sun May 29, 2011 9:36 pm
Location: Devon, UK
Contact:

Re: Joystick/gamepad deadzone

Post by maaarcooose »

another_commander wrote:
I'm afraid this is a driver related thing. As for the deadzone that was put back in, it is a generic setting for all joysticks that the game can see.
I presume this is hardcoded in the program or is it changeable somewhere already?

!m!
Trading computers and writing stuff....
Website: http://www.theramist.co.uk/
OOliteInfo: http://www.theramist.co.uk/ooliteinfo/oo.php
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6681
Joined: Wed Feb 28, 2007 7:54 am

Re: Joystick/gamepad deadzone

Post by another_commander »

It is hardcoded.
User avatar
maaarcooose
---- E L I T E ----
---- E L I T E ----
Posts: 397
Joined: Sun May 29, 2011 9:36 pm
Location: Devon, UK
Contact:

Re: Joystick/gamepad deadzone

Post by maaarcooose »

Fair enough. Once I get my dev environment working I'll try a hack.

!m!
Trading computers and writing stuff....
Website: http://www.theramist.co.uk/
OOliteInfo: http://www.theramist.co.uk/ooliteinfo/oo.php
User avatar
maaarcooose
---- E L I T E ----
---- E L I T E ----
Posts: 397
Joined: Sun May 29, 2011 9:36 pm
Location: Devon, UK
Contact:

Re: Joystick/gamepad deadzone

Post by maaarcooose »

Looks like a setting of 0.13 is about perfect for the xbox controller.
Just manages to get past the problem without sacrificing fine control.

I can see this being a bit of a pig for these controllers though. There's quite a bit of play in the sticks at rest that give changes in position. When I find my other cheap controller, I'll give it a try with that and see if the problem is worse/better/same.

!m!
Trading computers and writing stuff....
Website: http://www.theramist.co.uk/
OOliteInfo: http://www.theramist.co.uk/ooliteinfo/oo.php
User avatar
ChazFox
Above Average
Above Average
Posts: 22
Joined: Mon Jun 14, 2010 12:18 pm
Location: The Intergalactic Truckstop

Re: Joystick/gamepad deadzone

Post by ChazFox »

Man, it's been a while since I was last here. Good to hear that a deadzone's been implemented in the game, I tried using my joystick drivers and setting a deadzone on the axis that was giving me trouble, but I still kept drifting to the left as always. (I like to think it's a technical malfunction with my Cobra Mk III :p)

That said, I'm still getting leftward drift even after installing the latest version of the game. D: it's a mild annoyance but I'd still rather be able to cruise on without needing to constantly hold my joystick just a little bit left.
Food - Fuel - Fuzzy Aliens
Image
Why not pay us a visit?
User avatar
maaarcooose
---- E L I T E ----
---- E L I T E ----
Posts: 397
Joined: Sun May 29, 2011 9:36 pm
Location: Devon, UK
Contact:

Re: Joystick/gamepad deadzone

Post by maaarcooose »

Exactly what my xbox controller did.
This is now a moot point for me as I decided to invest in a decent joystick.

Still I think the deadzone slider in the settings would be nice or even a configuration file setting.

!m!
Trading computers and writing stuff....
Website: http://www.theramist.co.uk/
OOliteInfo: http://www.theramist.co.uk/ooliteinfo/oo.php
User avatar
ChazFox
Above Average
Above Average
Posts: 22
Joined: Mon Jun 14, 2010 12:18 pm
Location: The Intergalactic Truckstop

Re: Joystick/gamepad deadzone

Post by ChazFox »

After experimenting some more, it seems to primarily be an issue with my joystick right now. As I said before, it's a few years old, and there was a period of a few months where I didn't even use it, so its spring is a little looser than it should be. If I wiggle it about a fair bit and hold it to the right, I can get it to stay mostly straight until I nudge it again, then I start veering left as always.

For a while I was considering investing in a whole HOTAS setup, but those seem pretty expensive, so even just a normal joystick would probably be an improvement. :o

That said, a deadzone setting would still most definitely be appreciated, since joysticks are gonna wear down sooner or later, and it'd be annoying having to buy a new one every time just so you can play Oolite without veering off to the sides. :p
Food - Fuel - Fuzzy Aliens
Image
Why not pay us a visit?
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Re: Joystick/gamepad deadzone

Post by DaddyHoggy »

ChazFox wrote:
After experimenting some more, it seems to primarily be an issue with my joystick right now. As I said before, it's a few years old, and there was a period of a few months where I didn't even use it, so its spring is a little looser than it should be. If I wiggle it about a fair bit and hold it to the right, I can get it to stay mostly straight until I nudge it again, then I start veering left as always.

For a while I was considering investing in a whole HOTAS setup, but those seem pretty expensive, so even just a normal joystick would probably be an improvement. :o

That said, a deadzone setting would still most definitely be appreciated, since joysticks are gonna wear down sooner or later, and it'd be annoying having to buy a new one every time just so you can play Oolite without veering off to the sides. :p
Somebody posted elsewhere a £30 HOTAS system from Thrustmaster...
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
ChazFox
Above Average
Above Average
Posts: 22
Joined: Mon Jun 14, 2010 12:18 pm
Location: The Intergalactic Truckstop

Re: Joystick/gamepad deadzone

Post by ChazFox »

DaddyHoggy wrote:
ChazFox wrote:
After experimenting some more, it seems to primarily be an issue with my joystick right now. As I said before, it's a few years old, and there was a period of a few months where I didn't even use it, so its spring is a little looser than it should be. If I wiggle it about a fair bit and hold it to the right, I can get it to stay mostly straight until I nudge it again, then I start veering left as always.

For a while I was considering investing in a whole HOTAS setup, but those seem pretty expensive, so even just a normal joystick would probably be an improvement. :o

That said, a deadzone setting would still most definitely be appreciated, since joysticks are gonna wear down sooner or later, and it'd be annoying having to buy a new one every time just so you can play Oolite without veering off to the sides. :p
Somebody posted elsewhere a £30 HOTAS system from Thrustmaster...
The Thrustmaster T-Flight HOTAS system, right? Round about £30 to £40 on Amazon UK (Depending on what shipping option you choose, at least). Ordered it just now!
Food - Fuel - Fuzzy Aliens
Image
Why not pay us a visit?
Post Reply