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
New Developer
Posts: 9
Registered: ‎07-28-2008
My Device: Not Specified
Accepted Solution

How can I use EventInjector.TrackwheelEvent to scroll right and left?

I need to simulate a wheel right and a wheel left action.

 

I have successfully used the following to scroll up and down:

 

EventInjector.TrackwheelEvent.THUMB_ROLL_UP

EventInjector.TrackwheelEvent.THUMB_ROLL_DOWN

 

Any ideas?

BlackBerry Development Advisor
Posts: 15,021
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: How can I use EventInjector.TrackwheelEvent to scroll right and left?

On trackwheel devices, using Alt + scrolling is used by many applications for left and right movement.

 

If you are targeting trackball devices, you can navigate in any direction by injecting an EventInjector.NavigationEvent event.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
Posts: 9
Registered: ‎07-28-2008
My Device: Not Specified

Re: How can I use EventInjector.TrackwheelEvent to scroll right and left?

Thank you!

 

I was confusing the trackball with the trackwheel. The NavigationEvent solved my problem.