Skip to content

Commit

Permalink
...and the ev
Browse files Browse the repository at this point in the history
  • Loading branch information
Daft-Freak committed Jan 24, 2025
1 parent 739b7aa commit a4d6353
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 32blit-sdl/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,12 @@ void handle_event(SDL_Event &event) {
blit_input->handle_controller_removed(event.cdevice.which);
break;

#if SDL_VERSION_ATLEAST(2, 0, 14)
case SDL_CONTROLLERSENSORUPDATE:
if(event.csensor.sensor == SDL_SENSOR_ACCEL)
blit_input->handle_controller_accel(event.csensor.data);
break;
#endif

case SDL_RENDER_TARGETS_RESET:
std::cout << "Targets reset" << std::endl;
Expand Down

0 comments on commit a4d6353

Please sign in to comment.