Tutorial: Setting up Gestures

This simple howto will help set up gestures in Storyboard.

Add Action

By default, the gesture events are not included in the available Events list. You will need to add them manually.

Right-click the control you want to add the action to, and select Add > Action. Then click the Add button to the right of the Event Filter text box.

360024170151-add-action.png

New Event

In the New Event dialog, add the gesture events to the list. You will need to do this for all the gesture events you want to use in your application, including gre.gesture.up, gre.gesture.down, gre.gesture.left, and gre.gesture.right.

360024170191-new-event.png

Gesture Events

Select the gesture events in the Events list to trigger actions.

360024170171-gesture-events.png

Command-Line Options

By default both single and multi touch gestures are disabled so we need to pass the -ogesture,mode=single option to sbengine.

Note

single allows for single touch gestures and multi allows for both single and multi-touch gestures.

Once you have added the command-line option to sbengine, click Apply and then Run to enable gestures in your application.

360024170131-command-line-options.png
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Article is closed for comments.