remove mouse listener min delta param

pull/1/head
Sara 2023-04-20 22:57:51 +02:00
parent fb6b76f0cf
commit 61f9de5256
1 changed files with 1 additions and 2 deletions

View File

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