Mercurial > sdl-ios-xcode
annotate test/.cvsignore @ 892:dc29e5907694
Date: Sun, 18 Apr 2004 16:09:53 -0400 (EDT)
From: David MacCormack
Subject: [SDL] Linux joystick patch
I recently got myself a PS2 -> USB converter (a super joybox 5). It
accepts 4 PSX/PS2 controllers. It's implemented as a HID, which is nice
because it doesn't require its own driver, but the problem is that it's
implemented as a *single* HID -- that is, it shows up as a single
joystick with 19 axes, 4 hats, and 48 buttons. This poses a problem for a
number of apps which use SDL (stella, fce ultra, zsnes, to name a few) and
see only a single (physical) joystick even though there are really 4
(logical) joysticks. There are a number of these types of devices on the
market, and I've seen others post messages (in the zsnes forum, for
example) with the same problem, so I came up with what I think is a pretty
generic solution.
I patched src/joystick/linux/SDL_sysjoystic.c to include support for
logical joysticks; basically, it's a static array and supporting functions
that map a single physical joystick to multiple logical joysticks. The
attached patch has the new code. It's wrapped inside #ifndef
statements so that you can get the old behavior if you want.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 16 May 2004 18:46:24 +0000 |
parents | 700c9c5c923b |
children | e6a82dcdce09 |
rev | line source |
---|---|
416 | 1 Makefile.in |
2 Makefile | |
3 configure | |
4 config.cache | |
5 config.log | |
6 config.status | |
754
623b453a3219
Fixed "dist" make target for newer versions of automake
Sam Lantinga <slouken@libsdl.org>
parents:
676
diff
changeset
|
7 autom4te* |
416 | 8 aclocal.m4 |
9 checkkeys | |
10 graywin | |
11 loopwave | |
12 testalpha | |
13 testbitmap | |
14 testcdrom | |
817
700c9c5c923b
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
754
diff
changeset
|
15 testcpuinfo |
416 | 16 testerror |
17 testgamma | |
18 testgl | |
19 testhread | |
20 testjoystick | |
21 testkeys | |
22 testlock | |
23 testoverlay | |
676
8b58eeef4576
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
416
diff
changeset
|
24 testoverlay2 |
416 | 25 testpalette |
26 testsem | |
27 testsprite | |
28 testtimer | |
29 testtypes | |
30 testver | |
31 testvidinfo | |
32 testwin | |
33 testwm | |
34 threadwin |