diff options
author | Sam Lantinga <slouken@libsdl.org> | 2011-02-20 10:54:44 -0800 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2011-02-20 10:54:44 -0800 |
commit | f2209fb448fa16ab54579b04b3acb2f0219b6bf3 (patch) | |
tree | 2c4bca1c46284e0160f3995a857b0f97f85f6aac /test/Makefile.in | |
parent | e7aaeec596f0d7115fef09d81a284def52583433 (diff) |
Simple rumble API for haptic
Edgar Simo 2011-02-20 10:27:52 PST
Adding patch that adds a simplified API for the haptic subsystem built ontop of
the "real one" for those who want simple rumble without jumping through hoops.
Adds 4 functions:
- extern DECLSPEC int SDLCALL SDL_HapticRumbleSupported(SDL_Haptic * haptic);
- extern DECLSPEC int SDLCALL SDL_HapticRumbleInit(SDL_Haptic * haptic);
- extern DECLSPEC int SDLCALL SDL_HapticRumblePlay(SDL_Haptic * haptic, float
strength, Uint32 length );
- extern DECLSPEC int SDLCALL SDL_HapticRumbleStop(SDL_Haptic * haptic);
Also provided is test/testrumble.c which does test this.
This has all been tested on linux and has worked, but due to being built ontop
of the other haptic API it should work on all OS the same.
Diffstat (limited to 'test/Makefile.in')
-rw-r--r-- | test/Makefile.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Makefile.in b/test/Makefile.in index 3a82136b..1a9949a1 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -28,6 +28,7 @@ TARGETS = \ testgl2$(EXE) \ testgles$(EXE) \ testhaptic$(EXE) \ + testrumble$(EXE) \ testhread$(EXE) \ testiconv$(EXE) \ testime$(EXE) \ @@ -133,6 +134,9 @@ testgles$(EXE): $(srcdir)/testgles.c $(srcdir)/common.c testhaptic$(EXE): $(srcdir)/testhaptic.c $(CC) -o $@ $? $(CFLAGS) $(LIBS) +testrumble$(EXE): $(srcdir)/testrumble.c + $(CC) -o $@ $? $(CFLAGS) $(LIBS) + testhread$(EXE): $(srcdir)/testhread.c $(CC) -o $@ $? $(CFLAGS) $(LIBS) |