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

Adobe AIR Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 128
Registered: ‎03-18-2011
My Device: PlayBook
My Carrier: verizon

Re: multi-touch capabilities

I haven't done anything with multi-touch yet but I think you would use TouchEvent for multiple touch events. And I think MouseEvent would work like your first option. But I could be wrong.

Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: multi-touch capabilities

@XoomMan, you're exactly right.  I was assuming that his comment "although my app is not specifically looking to respond to a multitouch gesture" meant he was actually listening only to the MouseEvents which are automatically generated in parallel to the touch events.

 

I guess if he's actually responding to TouchEvents, but not handling them properly (i.e. tracking the touchPointIDs), then he could well get behaviour unsuitable for his app.  (I'd say "unexpected" behaviour, but he hasn't describe his expectations really.)


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!
Highlighted
Regular Contributor
Posts: 93
Registered: ‎02-03-2011
My Device: Not Specified

Re: multi-touch capabilities

Thank you guys. I am using MouseEvents - and your guess at what should happen with a second 'touch' happens being ignored by MouseEvents makes a lot of sense.

 

...Jim

 

Developer
Posts: 1,280
Registered: ‎03-03-2011
My Device: Playbook, Z10, Q10, Z30 with Files & Folders and Orbit of course
My Carrier: Vodafone

Re: multi-touch capabilities

Try:

 

 

Multitouch.inputMode=MultitouchInputMode.NONE

 

 

That will just report all touches as mouse events only, and disble reporting of individual touch events or gestures. It's a global setting as far as I can tell, something that Adobe will have to change sometime, because it should realy be component-specific.

 

The only way to test multitouch at the moment is:

 

 

  1. on Windows with a touchscreen as a stand-alone AIR app (the simulator doesn't handle touch properly, even with a touchscreen)
  2. on another platform, such as Android or IOS
  3. on a physical PlayBook 

 

I've used 1) on a Packard Bell Viseo 200T monitor and a Dell Latitude XT2 and 2) on an HTC Desire HD.

 

Cheers,  - Jon -

Files & Folders, the unified file & cloud manager for PlayBook and BB10 with SkyDrive, SugarSync, Box, Dropbox, Google Drive, Google Docs. Free 3-day trial! - Jon Webb - Innovatology - Utrecht, Netherlands