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
Contributor
Posts: 45
Registered: ‎04-11-2012
My Device: Z10 Limited Edition
My Carrier: 00201003883386

There is no multi touch and no gestures like (swipe , triple tap, finger pan, two finger tap ) in Cascades

Hello,

 

I cant find  multi touch  in Cascades

 

I cant find gestures like (swipe , triple tap, finger pan,  two finger tap )

 

 

Please advice

When you are young, work to learn. Not to earn !
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: There is no multi touch and no gestures like (swipe , triple tap, finger pan, two finger tap ) in Cascades

GestureHandler is here: http://developer.blackberry.com/cascades/reference/bb__cascades__gesturehandler.html It may not do all the gestures you want but you can probably treat those as being too obscure for BB10 in most cases (e.g. triple tap) and likely left out because they were considered to have usability problems.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Contributor
Posts: 45
Registered: ‎04-11-2012
My Device: Z10 Limited Edition
My Carrier: 00201003883386

Re: There is no multi touch and no gestures like (swipe , triple tap, finger pan, two finger tap ) in Cascades

Thanks for your reply.

 

I think any modern operating system should have multitouch in SDK. Any one has a tutorial how to have Multitouch with cascades?

When you are young, work to learn. Not to earn !
Developer
Posts: 541
Registered: ‎05-17-2009
My Device: Not Specified

Re: There is no multi touch and no gestures like (swipe , triple tap, finger pan, two finger tap ) in Cascades

[ Edited ]

Gesture detection is available including swipe, pan, triple tap and two finger tap. 

 

Check out:

 

http://developer.blackberry.com/cascades/documentation/dev/bps/index.html

 

and

 

http://developer.blackberry.com/native/reference/bb10/com.qnx.doc.gestures.lib_ref/topic/overview.ht...

 

 

 

Contributor
Posts: 45
Registered: ‎04-11-2012
My Device: Z10 Limited Edition
My Carrier: 00201003883386

Re: There is no multi touch and no gestures like (swipe , triple tap, finger pan, two finger tap ) in Cascades

Thanks for reply.

 

I know that the exist in Native but not in Cascades.  I managed to use BPS in listening to keyboard events but failed to implement multitouch and swype. So, if there is a tutorial for these two cases, I will be very thankful

When you are young, work to learn. Not to earn !
Developer
Posts: 541
Registered: ‎05-17-2009
My Device: Not Specified

Re: There is no multi touch and no gestures like (swipe , triple tap, finger pan, two finger tap ) in Cascades

Actually it appears I was wrong. BPS does not seem to be responsible for detecting the advanced gestures you are looking for.

 

Check out this document on gestures:

 

https://github.com/blackberry/NDK-Samples/blob/master/Gesture/main.c

 

In particular you are probably interested in the function, init_gestures(), which sets up the call back.

 

Cascades sits on top othe NDK so there should be no problem accessing those libraries.

 

Scott

 

Contributor
Posts: 45
Registered: ‎04-11-2012
My Device: Z10 Limited Edition
My Carrier: 00201003883386

Re: There is no multi touch and no gestures like (swipe , triple tap, finger pan, two finger tap ) in Cascades

I faced problems and appreciate a tutorial or code example

When you are young, work to learn. Not to earn !
Contributor
Posts: 45
Registered: ‎04-11-2012
My Device: Z10 Limited Edition
My Carrier: 00201003883386

Re: There is no multi touch and no gestures like (swipe , triple tap, finger pan, two finger tap ) in Cascades

any answer Smiley Sad
this question was asked more than a month ago
When you are young, work to learn. Not to earn !