diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-09-02 23:29:21 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2014-09-02 23:29:21 -0300 |
commit | e19513e92d38a19ce1d1d11f4e1c488a2a551e72 (patch) | |
tree | f594d2b8c3b1b659ff9731149717409a6edd9e0c /libre/sdl/fix_joystick_misc_axes.diff | |
parent | 10abf269ca1c3eda8334e515cc7d3f0f92c999dd (diff) | |
parent | 4cbcea3c1078e754ad555410d2fad0d3ed0e3bd3 (diff) | |
download | abslibre-e19513e92d38a19ce1d1d11f4e1c488a2a551e72.tar.gz abslibre-e19513e92d38a19ce1d1d11f4e1c488a2a551e72.tar.bz2 abslibre-e19513e92d38a19ce1d1d11f4e1c488a2a551e72.zip |
Merge branch 'master' of ssh://lukeshu.com:1863/srv/git/mirror/parabola/abslibre
Diffstat (limited to 'libre/sdl/fix_joystick_misc_axes.diff')
-rw-r--r-- | libre/sdl/fix_joystick_misc_axes.diff | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libre/sdl/fix_joystick_misc_axes.diff b/libre/sdl/fix_joystick_misc_axes.diff new file mode 100644 index 000000000..75e3755c9 --- /dev/null +++ b/libre/sdl/fix_joystick_misc_axes.diff @@ -0,0 +1,13 @@ +diff --git a/src/joystick/linux/SDL_sysjoystick.c b/src/joystick/linux/SDL_sysjoystick.c +index ee43974..80e46e4 100644 +--- a/src/joystick/linux/SDL_sysjoystick.c ++++ b/src/joystick/linux/SDL_sysjoystick.c +@@ -702,7 +702,7 @@ static SDL_bool EV_ConfigJoystick(SDL_Joystick *joystick, int fd) + ++joystick->nbuttons; + } + } +- for ( i=0; i<ABS_MISC; ++i ) { ++ for ( i=0; i<ABS_MAX; ++i ) { + /* Skip hats */ + if ( i == ABS_HAT0X ) { + i = ABS_HAT3Y; |