BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 02-12-2009, 02:38 AM   #1
Amrut
New Member
 
Join Date: Dec 2008
Model: 8800
PIN: N/A
Carrier: Airtel
Posts: 11
Default How to consume touchscreen event in 9500

Please Login to Remove!

hi

I am developing a game for BB, but i dont know how to consume touchscreen event while using BlackberryCanvas class

I used touchEvent() method in BlackberryCanvas, but it does not have a return type

Waiting for the reply

Thanks
Amrut
Offline  
Old 02-14-2009, 09:26 PM   #2
georg
Knows Where the Search Button Is
 
Join Date: Jun 2005
Location: Berlin
Model: 9500
OS: v4.7.0.78
PIN: 20CAFA18
Carrier: O2
Posts: 39
Default

What do you want to get in return? Its designed to be called by the system.
Offline  
Old 02-16-2009, 12:06 AM   #3
Amrut
New Member
 
Join Date: Dec 2008
Model: 8800
PIN: N/A
Carrier: Airtel
Posts: 11
Default

The touchEvent() method in the Screen Class has a returntype boolean, if I return a value true it will consume that Event..But in BlackberryCanvas Class it does not have a returntype..

The problem is, when i press the Screen, a Menu popsup at the bottom of the screen which have items (close & switch Application). I just don't want that Menu, for that i want to consume that Event.

I hope i am right!!!!!
Offline  
Old 02-16-2009, 06:39 PM   #4
georg
Knows Where the Search Button Is
 
Join Date: Jun 2005
Location: Berlin
Model: 9500
OS: v4.7.0.78
PIN: 20CAFA18
Carrier: O2
Posts: 39
Default

Its a top level class. It don't need to forward if the event was consumed. If you overwrite this method you decide yourself if it is consumed or not I think.
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


49' FT 6/4 SOOW High Flexible Portable Power Cable Jacket Black 600V USA picture

49' FT 6/4 SOOW High Flexible Portable Power Cable Jacket Black 600V USA

$152.95



Conductor Bus p/n 3536830-801 picture

Conductor Bus p/n 3536830-801

$285.00



Starter Battery Cable Copper 6 AWG to 4/0 Gauge - Black Red - 25 or 100 FT - USA picture

Starter Battery Cable Copper 6 AWG to 4/0 Gauge - Black Red - 25 or 100 FT - USA

$283.44



10 AWG SRML 200°C High Temperature Lead Wire UL 3231 Red 600V picture

10 AWG SRML 200°C High Temperature Lead Wire UL 3231 Red 600V

$240.99



100 FT 6/3 NM-B W/GROUND HOUSE WIRE/CABLE picture

100 FT 6/3 NM-B W/GROUND HOUSE WIRE/CABLE

$374.00



#14 AWG NPC  UL 3257 5/64th wall 10KVAC/25KVDC Orange  250C picture

#14 AWG NPC UL 3257 5/64th wall 10KVAC/25KVDC Orange 250C

$225.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.