| Summary: | SDL_JoystickGetButton returns 0 for every button (after migrating from 1.2 to 2.0.1) | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Matthias Varnholt <matto> |
| Component: | joystick | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED WORKSFORME | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 2.0.1 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
joystick type: "Zeroplus Xbox Controller" Reading axes and hats is still working fine though. SDL_INIT_VIDEO was used though gl context was created by Qt |
I read 0 for every button: ---- for (int i = 0; i < SDL_JoystickNumButtons(mActiveJoystick); i++) info.addButtonState(SDL_JoystickGetButton(mActiveJoystick, i)); ---- uname -a Linux varnholt 3.0.0-32-generic #51-Ubuntu SMP Thu Mar 21 15:50:59 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux ---- I installed version 2.0.1 by just extracting, build and installing the source archive.