Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
MikePembo951
Posts: 107
Registered: ‎02-15-2012
My Device: Blackberry Playbook 32GB
My Carrier: Virgin Mobile

gestures

[ Edited ]

Hi,

I'm writing an app that uses quite a lot of gestures at once and before I go any further writing it I want to make sure im on the right path.

I need to utilise gestures/touch events so that the user can use either of the two joysticks, (at the same time AND one at a time) whilst also checking if the user presses a button on the screen. (So they could also be using one joystick and a button at the same time).

The user would be using the left joystick for movement(translate world), the right joystick for orientation(rotate world), and the buttons for various other controls like fire.

 

Which gesture(s) should I use for this.

 

Currently I'm writing it with "Two Finger Pan" but not sure what to use for fire, swap weapon buttons.

I just need to receive TWO events for the buttons:

1. When the user presses it - returning the XY position

2. When the user releases it

 

For each joystick I need:

1. When the user presses it - returning the XY position 

2. When the user moves their finger whilst help down

3. When the user releases it

 

Any help would be greatly appreicated,

Thanks,

Mike

 

Update:

The game is for Playbook using os 2 but I do plan on porting for BB10 once Playbook version is finished and I can get my hands on a BB10 device.

Please use plain text.
Developer
MikePembo951
Posts: 107
Registered: ‎02-15-2012
My Device: Blackberry Playbook 32GB
My Carrier: Virgin Mobile

Re: gestures

anyone?

Please use plain text.