SDL-mirror/include
Sam Lantinga f2209fb448 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.
2011-02-20 10:54:44 -08:00
..
begin_code.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
close_code.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
doxyfile Only document the public API, not the whole source tree. 2011-01-27 07:05:13 -08:00
SDL.h Add assertions to the default API set. 2011-02-19 11:23:41 -08:00
SDL_assert.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_atomic.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_audio.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_blendmode.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_clipboard.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_compat.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_config.h The file is actually SDL_config.h now. 2011-02-17 19:00:29 -08:00
SDL_config.h.in Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_config_android.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_config_iphoneos.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_config_macosx.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_config_minimal.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_config_nintendods.h Frank Zago to sdl 2011-02-12 11:36:56 -08:00
SDL_config_pandora.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_config_windows.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_config_wiz.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_copying.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_cpuinfo.h Fixed SSE4 detection, and split it into SSE 4.1 and 4.2 2011-02-11 23:02:35 -08:00
SDL_endian.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_error.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_events.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_gesture.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_haptic.h Simple rumble API for haptic 2011-02-20 10:54:44 -08:00
SDL_hints.h changeset: 5272:cb08ef104ac4 2011-02-12 12:04:00 -08:00
SDL_input.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_joystick.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_keyboard.h Renamed SDL_keysym.h to SDL_keycode.h to avoid confusion. 2011-02-16 15:46:12 -08:00
SDL_keycode.h Renamed SDL_keysym.h to SDL_keycode.h to avoid confusion. 2011-02-16 15:46:12 -08:00
SDL_loadso.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_log.h Added missing log debug function 2011-02-19 11:23:56 -08:00
SDL_main.h Allow you to override SDL's main override 2011-02-16 12:27:29 -08:00
SDL_mouse.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_mutex.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_name.h Added a new header file: SDL_loadso.h 2002-03-06 05:20:11 +00:00
SDL_opengl.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_opengles.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_opengles2.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_pixels.h A few fixes: 2011-02-13 13:46:10 -08:00
SDL_platform.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_power.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_quit.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_rect.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_render.h Whoops, the format parameter was off the page. 2011-02-18 09:30:09 -08:00
SDL_revision.h Added a revision number for easy compile-time tests. 2011-02-20 10:42:51 -08:00
SDL_rwops.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_scancode.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_shape.h Finally got the Win32 API code for shaping to work! Just need to fix SDL_CalculateShapeTree() now! 2010-08-14 16:14:36 -04:00
SDL_stdinc.h Fixed bug #1090 (SDL_BlitCopyOverlap() assumes memcpy() operates in order) 2011-02-16 15:25:10 -08:00
SDL_surface.h Changed the concept of a render clip rect to a render viewport. 2011-02-15 13:59:59 -08:00
SDL_syswm.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_thread.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_timer.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_touch.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_types.h Happy 2011! :) 2011-02-11 22:37:15 -08:00
SDL_version.h Added a revision number for easy compile-time tests. 2011-02-20 10:42:51 -08:00
SDL_video.h Changed the concept of a render clip rect to a render viewport. 2011-02-15 13:59:59 -08:00