09-24-2012 10:45 AM
I have been reading up on this and am unsure as in how to handle this. Is it using navigationMovement, do I have to initialise the trackpad somehow using Inputsettings?
09-24-2012 11:52 AM
Trackpad in BlackBerry and mouse in Windows are two very different devices:
In Windows, the system has its own idea of "mouse position" and keeps track of it. The applications just ask the operating system about it. On BlackBerry, trackpad is not a pointing device: it is a navigation device. It never tells you a position - it reports movements. The system notifies UI objects (Fields) by calling their navigationMovement and navigationClick methods.
Most BlackBerry applications highlight the currently "focused" item (Field) - the one receiving keypad and navigation events (all Fields on the active screen receive touch events, but that's a different topic) and keep the scrolling positions so that this focused item is visible. You can emulate the Windows mouse (see how BlackBerry Web browser does it), but then your application must have a corresponding object keeping track of the "mouse pointer" position and drawing it.