Display and control your Android device
Send "screen on" command only on mouse down
Romain Vimonta8aa3d39b704
diff --git a/app/src/screencontrol.c b/app/src/screencontrol.cindex 4ba434bb..20f173fc 100644--- a/app/src/screencontrol.c+++ b/app/src/screencontrol.c@@ -177,7 +177,7 @@ void screencontrol_handle_mouse_motion(struct controller *controller,void screencontrol_handle_mouse_button(struct controller *controller,struct screen *screen,const SDL_MouseButtonEvent *event) {- if (event->button == SDL_BUTTON_RIGHT) {+ if (event->button == SDL_BUTTON_RIGHT && event->type == SDL_MOUSEBUTTONDOWN) {turn_screen_on(controller);return;};