1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-05 10:28:58 +00:00

Removes non-functioning workaround.

This commit is contained in:
Thomas Harte 2019-07-09 16:41:15 -04:00
parent f73bccfec8
commit fc6d62aefb

View File

@ -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);