disable cursor movement threshold when controller is the primary input (#14)

This commit is contained in:
thecozies
2024-04-30 09:41:22 -05:00
committed by GitHub
parent 1ec20de2f5
commit 52278c5a4d
3 changed files with 11 additions and 0 deletions
+5
View File
@@ -1260,6 +1260,11 @@ void draw_hook(RT64::RenderCommandList* command_list, RT64::RenderFramebuffer* s
}
last_mouse_pos[0] = cur_event.motion.x;
last_mouse_pos[1] = cur_event.motion.y;
// if controller is the primary input, don't use mouse movement to allow cursor to reactivate
if (recomp::get_cont_active()) {
break;
}
}
// fallthrough
case SDL_EventType::SDL_MOUSEBUTTONDOWN: