BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/index.php)
-   Developer Forum (http://www.blackberryforums.com/forumdisplay.php?f=15)
-   -   How to consume touchscreen event in 9500 (http://www.blackberryforums.com/showthread.php?t=175764)

Amrut 02-12-2009 02:38 AM

How to consume touchscreen event in 9500
 
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

georg 02-14-2009 09:26 PM

What do you want to get in return? Its designed to be called by the system.

Amrut 02-16-2009 12:06 AM

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!!!!!

georg 02-16-2009 06:39 PM

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.


All times are GMT -5. The time now is 10:21 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.