diff options
Diffstat (limited to 'src/ui/touch.h')
-rw-r--r-- | src/ui/touch.h | 12 |
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 | ||
28 | iDeclareType(Widget) | 28 | iDeclareType(Widget) |
29 | 29 | ||
30 | enum iWidgetTouchMode { | ||
31 | none_WidgetTouchMode, | ||
32 | touch_WidgetTouchMode, | ||
33 | momentum_WidgetTouchMode, | ||
34 | }; | ||
35 | |||
30 | iBool processEvent_Touch (const SDL_Event *); | 36 | iBool processEvent_Touch (const SDL_Event *); |
31 | void update_Touch (void); | 37 | void update_Touch (void); |
32 | void stopWidgetMomentum_Touch(iWidget *widget); | 38 | |
33 | void widgetDestroyed_Touch (iWidget *widget); | 39 | float stopWidgetMomentum_Touch (const iWidget *widget); |
40 | enum iWidgetTouchMode widgetMode_Touch (const iWidget *widget); | ||
41 | void widgetDestroyed_Touch (iWidget *widget); | ||
34 | 42 | ||
35 | iInt2 latestPosition_Touch (void); /* valid during processing of current event */ | 43 | iInt2 latestPosition_Touch (void); /* valid during processing of current event */ |
36 | size_t numFingers_Touch (void); | 44 | size_t numFingers_Touch (void); |