Skip to content

Commit

Permalink
Adds controllermap utility to test suite.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabomdq committed Dec 2, 2013
1 parent 45ae148 commit 95ec90a
Show file tree
Hide file tree
Showing 8 changed files with 445 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/joystick/SDL_gamecontrollerdb.h
Expand Up @@ -26,6 +26,8 @@
The easiest way to generate a new mapping is to start Steam in Big Picture
mode, configure your joystick and then look in config/config.vdf in your
Steam installation directory for the "SDL_GamepadBind" entry.
Alternatively, you can use the app located in test/controllermap
*/
static const char *s_ControllerMappings [] =
{
Expand Down
7 changes: 6 additions & 1 deletion test/Makefile.in
Expand Up @@ -55,7 +55,8 @@ TARGETS = \
torturethread$(EXE) \
testrendercopyex$(EXE) \
testmessage$(EXE) \

controllermap$(EXE) \

all: Makefile $(TARGETS)

Makefile: $(srcdir)/Makefile.in
Expand Down Expand Up @@ -238,6 +239,10 @@ testrendercopyex$(EXE): $(srcdir)/testrendercopyex.c
testmessage$(EXE): $(srcdir)/testmessage.c
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)

controllermap$(EXE): $(srcdir)/controllermap.c
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)


clean:
rm -f $(TARGETS)

Expand Down
3 changes: 3 additions & 0 deletions test/README
Expand Up @@ -25,3 +25,6 @@ These are test programs for the SDL library:
testver Check the version and dynamic loading and endianness
testwm2 Test window manager -- title, icon, events
torturethread Simple test for thread creation/destruction
controllermap Useful to generate Game Controller API compatible maps


Binary file added test/axis.bmp
Binary file not shown.
Binary file added test/button.bmp
Binary file not shown.
Binary file added test/controllermap.bmp
Binary file not shown.

0 comments on commit 95ec90a

Please sign in to comment.