Add SDL_JOYBATTERYUPDATED event to SDL_JoystickEventState()
diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c
index 94217cc..26b017b 100644
--- a/src/joystick/SDL_joystick.c
+++ b/src/joystick/SDL_joystick.c
@@ -1743,7 +1743,8 @@ SDL_JoystickEventState(int state)
#else
const Uint32 event_list[] = {
SDL_JOYAXISMOTION, SDL_JOYBALLMOTION, SDL_JOYHATMOTION,
- SDL_JOYBUTTONDOWN, SDL_JOYBUTTONUP, SDL_JOYDEVICEADDED, SDL_JOYDEVICEREMOVED
+ SDL_JOYBUTTONDOWN, SDL_JOYBUTTONUP, SDL_JOYDEVICEADDED, SDL_JOYDEVICEREMOVED,
+ SDL_JOYBATTERYUPDATED
};
unsigned int i;