Commits

Anonymous committed 1fc5189

Fix to joystick; c_void_p apparently not working.

Comments (0)

Files changed (1)

 import SDL.constants
 import SDL.dll
 
-SDL_Joystick_p = c_void_p
+class SDL_Joystick(Structure):
+    _fields_ = [('_dummy', c_void_p)]
+
+SDL_Joystick_p = POINTER(SDL_Joystick)
 
 SDL_NumJoysticks = SDL.dll.function('SDL_NumJoysticks',
     '''Count the number of joysticks attached to the system.