Commit graph

13 commits

Author SHA1 Message Date
Sam Lantinga
f4d9f8e59f Fixed memory overwrite in BSD joystick driver (thanks SUGIMOTO Sadahiro!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40504
2002-10-05 05:32:49 +00:00
Sam Lantinga
fae7d836a8 Date: Thu, 18 Jul 2002 23:51:40 +0200 (MEST)
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
2002-08-20 06:08:42 +00:00
Ryan C. Gordon
fd6a9a929b Fix for USB HID API. Fixes build on NetBSD and FreeBSD, but maybe causes
trouble on OpenBSD?

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40427
2002-07-26 17:13:17 +00:00
Sam Lantinga
f794e9e37c API changes on OpenBSD and FreeBSD...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40408
2002-06-12 03:32:01 +00:00
Sam Lantinga
c37f7658ad *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40406
2002-06-11 20:11:30 +00:00
Sam Lantinga
3ae1a7a53a *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40405
2002-06-11 20:06:42 +00:00
Sam Lantinga
05049da4bb *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40404
2002-06-11 19:56:41 +00:00
Sam Lantinga
2d3904c3e4 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40403
2002-06-11 19:43:04 +00:00
Sam Lantinga
922e3fe2c4 Wilbern Cobb submitted a fix for building BSD joystick support that should work on all BSD flavors.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40382
2002-05-28 20:01:29 +00:00
Sam Lantinga
9295a9bec1 Wilbern Cobb fixed joystick code on FreeBSD
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40359
2002-04-16 16:45:23 +00:00
Sam Lantinga
d45cd06f89 This properly scales axes, and adds support for sliders/wheels
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40308
2002-03-10 03:49:25 +00:00
Sam Lantinga
ea5d630479 Updated copyright information for 2002
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40298
2002-03-06 11:23:08 +00:00
Sam Lantinga
7dffe66c0f Added support for joysticks on *BSD (thanks Wilbern!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40279
2002-02-14 01:24:08 +00:00