Add basic mouse-to-touchpad emulation (#3842)

This commit is contained in:
kalaposfos13
2025-12-02 09:21:01 +01:00
committed by GitHub
parent a5f9280841
commit c3f7a4301c
6 changed files with 35 additions and 5 deletions

View File

@@ -457,6 +457,11 @@ void WindowSDL::WaitEvent() {
SDL_SetWindowRelativeMouseMode(this->GetSDLWindow(),
Input::ToggleMouseModeTo(Input::MouseMode::Gyro));
break;
case SDL_EVENT_MOUSE_TO_TOUCHPAD:
SDL_SetWindowRelativeMouseMode(this->GetSDLWindow(),
Input::ToggleMouseModeTo(Input::MouseMode::Touchpad));
SDL_SetWindowRelativeMouseMode(this->GetSDLWindow(), false);
break;
case SDL_EVENT_RDOC_CAPTURE:
VideoCore::TriggerCapture();
break;