From 95fe9302b0b414342c4489720f197ebfa131ae5d Mon Sep 17 00:00:00 2001 From: Noxwell Date: Tue, 13 Jan 2026 19:58:47 -0600 Subject: [PATCH] Fix no-movement touch holds in DraStic hook --- .../drastic-sa/sources/libdrastouch.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/projects/ROCKNIX/packages/emulators/standalone/drastic-sa/sources/libdrastouch.c b/projects/ROCKNIX/packages/emulators/standalone/drastic-sa/sources/libdrastouch.c index 15d1f340a3..0ed3987551 100644 --- a/projects/ROCKNIX/packages/emulators/standalone/drastic-sa/sources/libdrastouch.c +++ b/projects/ROCKNIX/packages/emulators/standalone/drastic-sa/sources/libdrastouch.c @@ -163,17 +163,16 @@ int SDL_PollEvent(SDL_Event* event) { int xrel = x - last_x; int yrel = y - last_y; - // Only update when needed - if (xrel != 0 || yrel != 0) { - event->type = SDL_MOUSEMOTION; - event->motion.x = x; - event->motion.y = y; - event->motion.xrel = xrel; - event->motion.yrel = yrel; + // Motion is also used when already clicked but not moving + // Always update it + event->type = SDL_MOUSEMOTION; + event->motion.x = x; + event->motion.y = y; + event->motion.xrel = xrel; + event->motion.yrel = yrel; - last_x = x; - last_y = y; - } + last_x = x; + last_y = y; break; } case SDL_FINGERUP: {