From: Holger Schemel Date: Wed, 23 Nov 2016 19:43:22 +0000 (+0100) Subject: fixed bug not using configured distance values for wipe gestures X-Git-Tag: 4.0.0.0~19 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=5e4083a987541a748724ea21569758d512e0e770;p=rocksndiamonds.git fixed bug not using configured distance values for wipe gestures --- diff --git a/src/events.c b/src/events.c index 6b121531..79821e98 100644 --- a/src/events.c +++ b/src/events.c @@ -565,8 +565,8 @@ void HandleFingerEvent(FingerEvent *event) static float button_x1, button_y1; static SDL_FingerID motion_id = -1; static SDL_FingerID button_id = -1; - int move_trigger_distance_percent = 2; // percent of touchpad width/height - int drop_trigger_distance_percent = 5; // percent of touchpad width/height + int move_trigger_distance_percent = setup.touch.move_distance; + int drop_trigger_distance_percent = setup.touch.drop_distance; float move_trigger_distance = (float)move_trigger_distance_percent / 100; float drop_trigger_distance = (float)drop_trigger_distance_percent / 100; float event_x = event->x;