Reputation: 24887
I want to scroll up and down in a custom menu I have made using the trackball, but how do I receive and filter the trackball events? (I know how to process keyboard events using protected boolean keyChar(char key, int status, int time)
.)
Upvotes: 0
Views: 901
Reputation: 3505
Your best bet is to use the navigationClick, navigationMovement and navigationUnclick methods in Field:
Or if you want to get the events before any of the fields do, override the same methods on the top-level Screen.
RIM strongly discourages the use of the old trackwheel API. Navigation is the way to go.
Upvotes: 3