diff --git a/OSBindings/SDL/main.cpp b/OSBindings/SDL/main.cpp index 5dce6daa8..43a8b80b6 100644 --- a/OSBindings/SDL/main.cpp +++ b/OSBindings/SDL/main.cpp @@ -736,15 +736,16 @@ int main(int argc, char *argv[]) { case SDL_MOUSEBUTTONUP: { const auto mouse_machine = machine->mouse_machine(); if(mouse_machine) { - printf("%d %s\n", event.button.button, (event.type == SDL_PRESSED) ? "pressed" : "released"); + printf("%d %s\n", event.button.button, (event.type == SDL_MOUSEBUTTONDOWN) ? "pressed" : "released"); mouse_machine->get_mouse().set_button_pressed( event.button.button % mouse_machine->get_mouse().get_number_of_buttons(), - event.type == SDL_PRESSED); + event.type == SDL_MOUSEBUTTONDOWN); } } break; case SDL_MOUSEMOTION: { if(SDL_GetRelativeMouseMode()) { + printf("-> %d %d (%d %d)\n", event.motion.x, event.motion.y, event.motion.xrel, event.motion.yrel); const auto mouse_machine = machine->mouse_machine(); if(mouse_machine) { mouse_machine->get_mouse().move(event.motion.xrel, event.motion.yrel);