omf2097 / openomf

One Must Fall 2097 Remake
http://www.openomf.org
MIT License
372 stars 40 forks source link

SDL_CONTROLLERBUTTONDOWN event not getting fired #217

Closed animehunter closed 10 years ago

animehunter commented 10 years ago

On Debian Sid 32bit (Joey's arcade machine), the SDL_CONTROLLERBUTTONDOWN event does not get fired when using a gamepad. This problem breaks the menu. This is highly likely to be an SDL or Debian 32bit bug.

Test code: https://github.com/omf2097/openomf/commit/0c8aeb7bc1aa2b5562ed1a4dbb27f76880238188

We could fix it by either:

  1. File a bug report to SDL (very complex procedure + waiting time)
  2. Switch to polling.

Any ideas?

Vagabond commented 10 years ago

I can switch to polling, but please file the SDL bug as well.

Vagabond commented 10 years ago

@TheOnlyJoey can you test the 'testgamecontroller' test app that comes with SDL, it will read gamecontrollerdb mappings from ./gamecontrollerdb.txt.

You just need to pass it the indexes of the controller to use, probably 0 if it is the first controller.

TheOnlyJoey commented 10 years ago

This is interesting.

I tried this on 3 systems with 2 different controllers. On my 32 bit Debian machine, only the axes register. On my 32 bit Ubuntu (from a live stick) same result (with mercurial checkout from SDL2).

On my 64bit Ubuntu machine, everything works as expected

I think we found ourselves a bug!. Can someone else also setup a 32 bit test? (32bit live usb stick would do)

On Wed, May 7, 2014 at 6:32 AM, Andrew Thompson notifications@github.comwrote:

@TheOnlyJoey https://github.com/TheOnlyJoey can you test the 'testgamecontroller' test app that comes with SDL, it will read gamecontrollerdb mappings from ./gamecontrollerdb.txt.

You just need to pass it the indexes of the controller to use, probably 0 if it is the first controller.

— Reply to this email directly or view it on GitHubhttps://github.com/omf2097/openomf/issues/217#issuecomment-42388652 .

katajakasa commented 10 years ago

Is this still an issue ? :/

katajakasa commented 10 years ago

No news on this one, assuming fixed. Reopen or create a new ticket if not.