java - How do I use the TrackBall API in Blackberry? -


i want scroll , down in custom menu have made using trackball, how receive , filter trackball events? (i know how process keyboard events using protected boolean keychar(char key, int status, int time).)

your best bet use navigationclick, navigationmovement , navigationunclick methods in field:

http://www.blackberry.com/developers/docs/4.2.1api/net/rim/device/api/ui/screen.html#navigationmovement%28int,%20int,%20int,%20int%29

or if want events before of fields do, override same methods on top-level screen.

rim discourages use of old trackwheel api. navigation way go.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -