Fixed bug 4829 - Sensor events incorrectly disabled

This commit is contained in:
Sylvain Becker 2019-10-18 14:23:37 +02:00
parent e5bd20030d
commit 412ab7e1aa
1 changed files with 1 additions and 1 deletions

View File

@ -486,7 +486,7 @@ SDL_PrivateSensorUpdate(SDL_Sensor *sensor, float *data, int num_values)
/* Post the event, if desired */
posted = 0;
#if !SDL_EVENTS_DISABLED
if (SDL_GetEventState(SDL_JOYAXISMOTION) == SDL_ENABLE) {
if (SDL_GetEventState(SDL_SENSORUPDATE) == SDL_ENABLE) {
SDL_Event event;
event.type = SDL_SENSORUPDATE;
event.sensor.which = sensor->instance_id;