summaryrefslogtreecommitdiff
path: root/src/ui/touch.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-04-21 19:51:22 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-04-21 19:51:22 +0300
commit2acc486899b7253dbbc1656ea444c596d8af16ad (patch)
tree67a4ed03353e710c8a1164c1173f025f8f915e5c /src/ui/touch.h
parent2e7b41f2d20cee278514b84ccf131062a62b3fee (diff)
Mobile: Working on scroll bounce behavior
Diffstat (limited to 'src/ui/touch.h')
-rw-r--r--src/ui/touch.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/ui/touch.h b/src/ui/touch.h
index 0a24248b..1a6fb350 100644
--- a/src/ui/touch.h
+++ b/src/ui/touch.h
@@ -27,10 +27,18 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
27 27
28iDeclareType(Widget) 28iDeclareType(Widget)
29 29
30enum iWidgetTouchMode {
31 none_WidgetTouchMode,
32 touch_WidgetTouchMode,
33 momentum_WidgetTouchMode,
34};
35
30iBool processEvent_Touch (const SDL_Event *); 36iBool processEvent_Touch (const SDL_Event *);
31void update_Touch (void); 37void update_Touch (void);
32void stopWidgetMomentum_Touch(iWidget *widget); 38
33void widgetDestroyed_Touch (iWidget *widget); 39float stopWidgetMomentum_Touch (const iWidget *widget);
40enum iWidgetTouchMode widgetMode_Touch (const iWidget *widget);
41void widgetDestroyed_Touch (iWidget *widget);
34 42
35iInt2 latestPosition_Touch (void); /* valid during processing of current event */ 43iInt2 latestPosition_Touch (void); /* valid during processing of current event */
36size_t numFingers_Touch (void); 44size_t numFingers_Touch (void);