Fix device rotation shortcut

MOD+r was never handled because it was consumed by the MOD+Shift+r
handler.
This commit is contained in:
Romain Vimont 2026-04-03 21:35:26 +02:00
parent df91514112
commit 5fedc79530

View file

@ -525,10 +525,14 @@ sc_input_manager_process_key(struct sc_input_manager *im,
// Controls for all sources
switch (sdl_keycode) {
case SDLK_R:
if (!repeat && shift && down && !paused) {
reset_video(im);
// Only capture if shift is set
if (shift) {
if (!repeat && down && !paused) {
reset_video(im);
}
return;
}
return;
break;
}
}