remove mouse listener min delta param
parent
fb6b76f0cf
commit
61f9de5256
|
@ -85,8 +85,7 @@ void process_axis_listener(input_listener_t* listener) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void process_mouse_listener(input_listener_t* listener, float dx, float dy) {
|
void process_mouse_listener(input_listener_t* listener, float dx, float dy) {
|
||||||
float mind = listener->mouse.min_delta;
|
if(dx != 0.0 && dy != 0.0) {
|
||||||
if(dx*dx + dy*dy > mind*mind) {
|
|
||||||
listener->mouse.delegate(dx, dy);
|
listener->mouse.delegate(dx, dy);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue