From 61f9de525693b6c545ce0c11827bdc082b1f044e Mon Sep 17 00:00:00 2001 From: Sara Date: Thu, 20 Apr 2023 22:57:51 +0200 Subject: [PATCH] remove mouse listener min delta param --- src/corelib/input.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/corelib/input.c b/src/corelib/input.c index 38ad3b1..fcc36dc 100644 --- a/src/corelib/input.c +++ b/src/corelib/input.c @@ -85,8 +85,7 @@ void process_axis_listener(input_listener_t* listener) { } void process_mouse_listener(input_listener_t* listener, float dx, float dy) { - float mind = listener->mouse.min_delta; - if(dx*dx + dy*dy > mind*mind) { + if(dx != 0.0 && dy != 0.0) { listener->mouse.delegate(dx, dy); } }