BGE PyAPI fixes
[blender.git] / source / gameengine / GameLogic / Joystick / SCA_JoystickEvents.cpp
index 66193a2f4b92dce3f9ec1865dbc8c1a591369c72..53d3be35f92b61ec836e2860ca10eece904b3bcf 100644 (file)
@@ -45,7 +45,7 @@ void SCA_Joystick::OnAxisMotion(SDL_Event* sdl_event)
 /* See notes below in the event loop */
 void SCA_Joystick::OnHatMotion(SDL_Event* sdl_event)
 {
-       if(sdl_event->jhat.hat >= JOYAXIS_MAX)
+       if(sdl_event->jhat.hat >= JOYHAT_MAX)
                return;
 
        m_hat_array[sdl_event->jhat.hat]= sdl_event->jhat.value;