From: Mikko Rasa Date: Mon, 19 Sep 2016 17:51:32 +0000 (+0300) Subject: Tweak GestureDetector button and axis names X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=ab03781d9d893bb50a1947cbef6ef2c35ae10d16;p=libs%2Fgui.git Tweak GestureDetector button and axis names Tap gesture buttons were missing names and the progress axis was outdated. --- diff --git a/source/input/gesturedetector.cpp b/source/input/gesturedetector.cpp index 49ddba2..145262a 100644 --- a/source/input/gesturedetector.cpp +++ b/source/input/gesturedetector.cpp @@ -28,7 +28,11 @@ GestureDetector::GestureDetector(Touchscreen &ts): string GestureDetector::get_button_name(unsigned btn) const { - if(btn==GESTURE_DRAG) + if(btn==GESTURE_TAP) + return "Tap"; + else if(btn==GESTURE_TAP_2) + return "Two-finger tap"; + else if(btn==GESTURE_DRAG) return "Drag"; else if(btn==GESTURE_DRAG_2) return "Two-finger drag"; @@ -47,7 +51,9 @@ string GestureDetector::get_axis_name(unsigned axis) const else if(axis==1) return "Y"; else if(axis==2) - return "Progress"; + return "Delta X"; + else if(axis==3) + return "Delta Y"; else return Device::get_axis_name(axis); }