• Sam Lantinga's avatar
    Date: Thu, 18 Jul 2002 23:51:40 +0200 (MEST) · fae7d836
    Sam Lantinga authored
    From: Krister Walfridsson
    Subject: [SDL] src/joystick/bsd/SDL_sysjoystick.c patch
    
    The *BSD USB HID joystick code has two serious bugs:
    
    1. If a joystick reports unhandled hid_input usage (for example HUG_RZ or
       HUG_DIAL), then the last handled value will be overwritten with an
       arbitrary value. (Fixed in the patch below by adding a default case.)
    
    2. The current code does only handle logical coordinates in the range 0-255,
       while a big part of available joysticks report -128 - 127. (This is solved
       in the patch below by first center the range around 0, and then stretch
       it to the correct range.)
    
    --HG--
    extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40462
    fae7d836
Name
Last commit
Last update
..
audio Loading commit data...
cdrom Loading commit data...
endian Loading commit data...
events Loading commit data...
file Loading commit data...
hermes Loading commit data...
joystick Loading commit data...
main Loading commit data...
thread Loading commit data...
timer Loading commit data...
video Loading commit data...
.cvsignore Loading commit data...
Makefile.am Loading commit data...
SDL.c Loading commit data...
SDL_error.c Loading commit data...
SDL_error_c.h Loading commit data...
SDL_fatal.c Loading commit data...
SDL_fatal.h Loading commit data...
SDL_getenv.c Loading commit data...
SDL_loadso.c Loading commit data...
SDL_loadso.h Loading commit data...