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

Java Development

Reply
Developer
ravindrakamble
Posts: 68
Registered: ‎07-21-2008
My Device: Not Specified

How to implement Event of trackball?

Can you anyone please explain me the events like TrackBall Navigation and Track ball click? How to handle that event?

Please explain with code example.

Thanks in Advance.

Developer
javec
Posts: 445
Registered: ‎07-15-2008
My Device: Not Specified

Re: How to implement Event of trackball?

If you want to click the trackball programmically then you can use this code:

 

EventInjector.invokeEvent(new EventInjector.TrackwheelEvent(EventInjector.TrackwheelEvent.THUMB_CLICK , 0,TrackwheelListener.STATUS_NOT_FROM_KEYPAD));

EventInjector.invokeEvent(new EventInjector.TrackwheelEvent(EventInjector.TrackwheelEvent.THUMB_UNCLICK , 0,TrackwheelListener.STATUS_NOT_FROM_KEYPAD));

 

 

 

If your question was answered, please accept it as a sollution and / or give Kudos ;-)
______________________________
Use the Search Field first! Maybe the question you want to ask already exists!
Developer
ravindrakamble
Posts: 68
Registered: ‎07-21-2008
My Device: Not Specified

Re: How to implement Event of trackball?

Thanks. And How to implement trackWheel naviigation?
Developer
javec
Posts: 445
Registered: ‎07-15-2008
My Device: Not Specified

Re: How to implement Event of trackball?

Do you mean a programmically click of the trackball?  
If your question was answered, please accept it as a sollution and / or give Kudos ;-)
______________________________
Use the Search Field first! Maybe the question you want to ask already exists!
Developer
ravindrakamble
Posts: 68
Registered: ‎07-21-2008
My Device: Not Specified

Re: How to implement Event of trackball?

Programatically click and navigate?
Developer
javec
Posts: 445
Registered: ‎07-15-2008
My Device: Not Specified

Re: How to implement Event of trackball?

That is what you are looking for:

http://www.blackberry.com/developers/docs/4.5.0api/net/rim/device/api/system/EventInjector.TrackwheelEvent.html 

If your question was answered, please accept it as a sollution and / or give Kudos ;-)
______________________________
Use the Search Field first! Maybe the question you want to ask already exists!
Retired
mkirkup
Posts: 179
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to implement Event of trackball?

Check out this thread which I believe will be closer to what you are looking for.

 

http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&thread.id=629

 

Mike Kirkup
Director, Developer Relations