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.


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.


Gesture Events

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


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.


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.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request



Article is closed for comments.