[2.0.3]-Problems With USB Gamepads On Linux?

What kind of pad are you using? If the pad has an analog stick, it’s
possible that you’re picking up motion from it. Particularly if you
don’t have a dead zone in your game. Because the classic PC game
port device was an analog joystick, most retro-style digital produce
a fake analog signal when a digital button is pressed. These tend
not to need/have any dead zones to worry about.

But older PC gamepads, including the USB ones, used analog pad. I’ve
seen Logitech, Microsoft, and Gravis examples, to name a few.

Finally, if there’s any chance that your game recognizes both analog
and digital input, the XBox 360 controller so lauded for its "feel"
has some of the most ridiculous pieces of horse crap analog sticks
ever invented. Sometimes a brand new example has exceptionally poor
centering, and because of that Microsoft directs you to use dead zone
values that completely cripple any pad that’s actually built
correctly. When you hear people complain that a pad’s sticks seem to
always seem to move you at a run or have no fine motion control, it’s
not the pad that’s at fault?it’s Microsoft’s “quality” parts and the
code hacks they use to work around them.

Just a couple of starting places.

JosephOn Wed, Dec 10, 2014 at 08:48:32AM +0000, JeZ-l-Lee wrote:

[2.0.3]-Problems With USB Gamepads On Linux?

Hi,

Running Xubuntu 14.04 L.T.S. 64Bit fully updated.
I have two USB gamepads plugged in to my development desktop.
When I run a game we are working on on development desktop
the USB gamepad’s direction D-Pad are not centered
and as a result the main menu cursor moves constantly?

Our game uses current SDL version 2 from Ubuntu repositories.
Anyone know why the above is occurring and how to fix it?

You can download the current Alpha1 Windows/Linux dual build at below URL link:
http://16bitsoft.com/Files/LD2/Alpha/LD2-WinLinux-Alpha1.zip
(EXE included for Windows / makefile included for Linux)
On Linux, you’ll need:

  • GCC
  • SDL2 + dev
  • SDL2_Image + dev
  • SDL2_Mixer + dev
  • SDL2_TTF + dev
  • OpenGL hardware acceleration for good performance

Any help would be appreciated, thanks!


JeZ+Lee
JessePalser <AT> Gmail <DOT> com
16BitSoft Inc.
Video Game Design Studio
www.16BitSoft.com


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org