SDL/include
Sam Lantinga 1636b263b6 Joe 2009-11-23 21:31:10 PST
If type is ::SDL_HAPTIC_CARTESIAN, direction is encoded by three positions
367     *  (X axis, Y axis and Z axis (with 3 axes)).  ::SDL_HAPTIC_CARTESIAN
uses
368     *  the first three \c dir parameters.  The cardinal directions would
be:
369     *   - North:  0,-1, 0
370     *   - East:  -1, 0, 0
371     *   - South:  0, 1, 0
372     *   - West:   1, 0, 0

typedef struct SDL_HapticDirection
{
    Uint8 type;         /**< The type of encoding. */
    Uint16 dir[3];      /**< The encoded direction. */
} SDL_HapticDirection;

An unsigned int can't store negative values and I don't see an alternate way to
encode them in the docs or source. The best I have been able to come up with is
using a negative magnitude for the effect but this will only get me 2 of the 4
quadrants in the plane for 2d effects. I looked at the win32 and linux
implementations and I believe is is safe to use signed ints in the direction
struct. I am unfamiliar with the darwin haptics API so I don't know if it is
safe.
2009-11-27 19:29:27 +00:00
..
begin_code.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
close_code.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
doxyfile SDL 1.2 is moving to a branch, and SDL 1.3 is becoming the head. 2006-07-10 21:04:37 +00:00
SDL_atomic.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_audio.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_compat.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_config_iphoneos.h Eric Wing to Sam, hfutrell 2009-11-24 08:12:32 +00:00
SDL_config_macosx.h iPhone interruption patch / SDL 1.3 2009-10-17 07:36:45 +00:00
SDL_config_minimal.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_config_nintendods.h CD-ROM support is so passé :) 2009-09-05 09:11:03 +00:00
SDL_config_pandora.h CD-ROM support is so passé :) 2009-09-05 09:11:03 +00:00
SDL_config_win32.h CD-ROM support is so passé :) 2009-09-05 09:11:03 +00:00
SDL_config_wiz.h Scott to slouken 2009-11-17 04:53:15 +00:00
SDL_config.h.default Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_config.h.in Fixed bug #878 2009-11-09 04:13:51 +00:00
SDL_copying.h Updated copyright date 2008-12-08 00:27:32 +00:00
SDL_cpuinfo.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_endian.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_error.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_events.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_haptic.h Joe 2009-11-23 21:31:10 PST 2009-11-27 19:29:27 +00:00
SDL_joystick.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_keyboard.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_keysym.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_loadso.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_main.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_mouse.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_mutex.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_name.h Added a new header file: SDL_loadso.h 2002-03-06 05:20:11 +00:00
SDL_opengl.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_opengles.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_pixels.h Made the comment actually mean something. :) 2009-11-22 20:00:00 +00:00
SDL_platform.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_power.h Fixed gcc warning 2009-11-09 15:12:31 +00:00
SDL_quit.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_rect.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_rwops.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_scancode.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_stdinc.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_surface.h Added a utility function to convert blocks of pixels 2009-11-15 09:21:46 +00:00
SDL_syswm.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_thread.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_timer.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_types.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_version.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00
SDL_video.h SDL_CreateWindowFrom() is actually going to be supported. :) 2009-11-25 07:42:23 +00:00
SDL.h Partial fix for bug #859 2009-10-19 13:31:58 +00:00