summaryrefslogtreecommitdiff
path: root/src/ui/touch.h
diff options
context:
space:
mode:
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);