Skip to content

Commit

Permalink
Fixed bug 4829 - Sensor events incorrectly disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
1bsyl committed Oct 18, 2019
1 parent e5bd200 commit 412ab7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sensor/SDL_sensor.c
Expand Up @@ -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;
Expand Down

0 comments on commit 412ab7e

Please sign in to comment.