• 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
..
amigaos Loading commit data...
beos Loading commit data...
bsd Loading commit data...
darwin Loading commit data...
dummy Loading commit data...
linux Loading commit data...
macos Loading commit data...
mint Loading commit data...
win32 Loading commit data...
.cvsignore Loading commit data...
Makefile.am Loading commit data...
SDL_joystick.c Loading commit data...
SDL_joystick_c.h Loading commit data...
SDL_sysjoystick.h Loading commit data...