X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Fevents.c;h=c7707c2f6f9fcc7c3904003cac863a518fd66243;hp=bbc211745fd01ed7ce09ab5648d3c550d0edab80;hb=0e98fc357c7de32acf995fdcfacb7e1517e8e60c;hpb=48288f0f864f596e6532dfc7363b398f6beb955c diff --git a/src/events.c b/src/events.c index bbc21174..c7707c2f 100644 --- a/src/events.c +++ b/src/events.c @@ -676,7 +676,7 @@ void HandleFingerEvent(FingerEvent *event) if (game_status != GAME_MODE_PLAYING) return; - if (strEqual(setup.touch.control_type, TOUCH_CONTROL_FOLLOW_FINGER)) + if (strEqual(setup.touch.control_type, TOUCH_CONTROL_OFF)) return; if (strEqual(setup.touch.control_type, TOUCH_CONTROL_VIRTUAL_BUTTONS)) @@ -824,6 +824,9 @@ void HandleFingerEvent(FingerEvent *event) return; } + if (!strEqual(setup.touch.control_type, TOUCH_CONTROL_WIPE_GESTURES)) + return; + // use touch direction control if (event->type == EVENT_FINGERPRESS)