Add SDL_JOYBATTERYUPDATED event to SDL_JoystickEventState()

This commit is contained in:
Mathieu Eyraud 2022-08-14 14:55:32 +02:00 committed by Sam Lantinga
parent b72cf207fb
commit c6c688ab01

View file

@ -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;