From fc6d62aefb24703e82e21f5c821973ff734a40e0 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 9 Jul 2019 16:41:15 -0400 Subject: [PATCH] Removes non-functioning workaround. --- OSBindings/SDL/main.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/OSBindings/SDL/main.cpp b/OSBindings/SDL/main.cpp index 9af82460e..31721e5d7 100644 --- a/OSBindings/SDL/main.cpp +++ b/OSBindings/SDL/main.cpp @@ -744,12 +744,6 @@ int main(int argc, char *argv[]) { case SDL_MOUSEMOTION: { if(SDL_GetRelativeMouseMode()) { - // This is a workaround; using motion.xrel and motion.yrel from the event doesn't - // appear to work consistently. - int xrel, yrel; - SDL_GetRelativeMouseState(&xrel, &yrel); - - printf("-> %d %d (%d %d / %d %d)\n", event.motion.x, event.motion.y, event.motion.xrel, event.motion.yrel, xrel, yrel); const auto mouse_machine = machine->mouse_machine(); if(mouse_machine) { mouse_machine->get_mouse().move(event.motion.xrel, event.motion.yrel);