Commit graph

447 commits

Author SHA1 Message Date
Sam Lantinga
582b9152ff Added support for HID sliders wheels and dials on MacOS X
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40595
2003-02-04 21:05:20 +00:00
Sam Lantinga
94474c2e62 Removed obsolete Linux joystick code
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40590
2003-02-01 20:25:34 +00:00
Sam Lantinga
cdde594dbc Updated Atari port for new system headers (thanks Patrice!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40558
2002-12-07 06:54:47 +00:00
Sam Lantinga
241cf39101 Linux joystick cleanups from Alan Swanson
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40555
2002-12-02 03:11:36 +00:00
Sam Lantinga
180f7d626c *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40553
2002-12-02 02:35:58 +00:00
Sam Lantinga
9f15e5f2c2 Fixed bsd joystick detection ... again (thanks Wilbern)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40545
2002-11-17 19:03:05 +00:00
Sam Lantinga
d0b835b8ee Fixed joystick detection problem on Windows XP (thanks Maciej!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40532
2002-10-15 04:26:20 +00:00
Sam Lantinga
3ee2de057f Added initial support for Dreamcast (thanks HERO!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40510
2002-10-05 16:50:56 +00:00
Sam Lantinga
291e8f9bf5 Atari joystick fixes contributed by Patrice Mandin
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40508
2002-10-05 16:27:29 +00:00
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
34a52528ff Date: Thu, 12 Sep 2002 20:35:51 -0400
From: Darrell Walisser
Subject: Jag joystick fix (take 2)

This patch enables all HID devices, not just joysticks. This quell
complaints about gamepads not working, though I don't have I gamepad to
verify this theory.

Before, only joysticks were recognized. Now, all HID devices except the
keyboard and mouse will be recognized.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40496
2002-09-16 06:50:26 +00:00
Sam Lantinga
9f74acc70f Darrell's Jag joystick fix
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40476
2002-08-31 01:31:44 +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
Sam Lantinga
7a17d3a08b Date: Mon, 29 Jul 2002 15:07:22 +1000
From: screwtape@froup.com

The attached patch lets SDL_Init(SDL_INIT_JOYSTICK) succeed on Mac OS
X when there are no joysticks attached, in line with SDL's behaviour
on Linux.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40428
2002-07-29 22:26:43 +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
76555d8bed *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40409
2002-06-12 23:49:31 +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
7825ae2b6d Added some more joysticks on Linux
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40407
2002-06-12 03:30:58 +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
a1b67e349e *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40378
2002-05-20 17:40:55 +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
8de550f702 Atari port cleanups from Patrice
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40306
2002-03-10 03:33:59 +00:00
Sam Lantinga
ee411baee8 Added Atari joystick support (thanks Patrice!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40303
2002-03-07 20:23:11 +00:00
Sam Lantinga
f6e37ac8de *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40300
2002-03-06 18:25:45 +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
Sam Lantinga
896c76ea65 Updated Amiga port by Gabriele Greco
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40256
2001-12-16 20:00:27 +00:00
Sam Lantinga
3ceea60069 Updated the source with the correct e-mail address
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40253
2001-12-14 12:38:15 +00:00
Sam Lantinga
90a40eae2b *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40246
2001-11-26 22:22:20 +00:00
Sam Lantinga
e79ad74ac3 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40222
2001-11-02 18:12:52 +00:00
Sam Lantinga
75c71e3f4b If we're looking at the /dev/input event devices, and we found
at least one, then we don't want to look at the input joystick
devices, since they're built on top of devices that we've already
seen, so we're done.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40212
2001-10-22 21:34:50 +00:00
Sam Lantinga
1fc7708dc0 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40211
2001-10-18 15:07:09 +00:00
Sam Lantinga
fb0a891f27 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40210
2001-10-16 15:04:00 +00:00
Sam Lantinga
81aa5fb298 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40209
2001-10-16 15:01:37 +00:00
Sam Lantinga
d7dcae3d87 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40197
2001-09-23 21:58:52 +00:00
Sam Lantinga
bea3cb1da4 Date: Sat, 8 Sep 2001 04:42:23 +0200
From: Max Horn <max@quendi.de>
Subject: SDL/OSX: Joystick; Better key handling

I just finished implementing improved keyhandling for OS X (in fact
the code should be easily ported to the "normal" MacOS part of SDL, I
just had no chance yet). Works like this:
First init the mapping table statically like before. Them, it queries
the OS for the "official" key table, then iterates over all 127
scancode and gets the associates ascii code. It ignores everythng
below 32 (has to, as it would lead to many problems if we did not...
e.g. both ESC and NUM LOCk produce an ascii code 27 on my keyboard),
and all stuff above 127 is mapped to SDLK_WORLD_* simply in the order
it is encountered.
In addition, caps lock is now working, too.
The code work flawless for me, but since I only have one keyboard, I
may have not encountered some serious problem... but I am pretty
confident that it is better than the old code in most cases.


The joystick driver works fine for me, too. I think it can be added
to CVS already. It would simply be helpful if more people would test
it. Hm, I wonder if Maelstrom or GLTron has Joystick support? That
would be a wonderful test application :)


I also took the liberty of modifying some text files like BUGS,
README.CVS, README.MacOSX (which now contains the OS X docs I long
promised)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40173
2001-09-11 19:00:18 +00:00
Sam Lantinga
b29480bdb9 Joystick initialization fix submitted by Vitaliy Mikitchenko
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40166
2001-09-04 22:38:01 +00:00
Sam Lantinga
8840f4dbf5 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%4075
2001-06-16 06:47:45 +00:00
Sam Lantinga
e82590fade Fixed bug in joystick motion, thanks to Alexandre Duret-Lutz
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%4050
2001-06-07 14:57:07 +00:00
Sam Lantinga
56c5f79a63 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%4042
2001-05-27 00:24:43 +00:00
Sam Lantinga
df7866c435 Updated the Amiga OS port of SDL (thanks Gabriele)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%4022
2001-05-10 20:13:29 +00:00
Sam Lantinga
2f110628a7 Initial revision
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401
2001-04-26 16:45:43 +00:00