From 1b692d307dc1bbbdcbb180717b2c3cd8d5db8c4d Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Wed, 8 May 2013 21:14:32 -0400 Subject: [PATCH] A couple fixes for Haptic --- src/SDL2.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/SDL2.cs b/src/SDL2.cs index 7ef0f15..24f8e3f 100644 --- a/src/SDL2.cs +++ b/src/SDL2.cs @@ -3907,9 +3907,9 @@ namespace SDL2 public const ushort SDL_HAPTIC_PAUSE = (1 << 15); /* SDL_HapticDirection type */ - public const ushort SDL_HAPTIC_POLAR = 0; - public const ushort SDL_HAPTIC_CARTESIAN = 1; - public const ushort SDL_HAPTIC_SPHERICAL = 2; + public const byte SDL_HAPTIC_POLAR = 0; + public const byte SDL_HAPTIC_CARTESIAN = 1; + public const byte SDL_HAPTIC_SPHERICAL = 2; /* SDL_HapticRunEffect */ public const uint SDL_HAPTIC_INFINITY = 4292967295U; @@ -3981,10 +3981,10 @@ namespace SDL2 } [StructLayout(LayoutKind.Sequential)] - public struct SDL_HapticDirection + public unsafe struct SDL_HapticDirection { public byte type; - public int dir; + public fixed int dir[3]; } [StructLayout(LayoutKind.Sequential)]