Question

In the blackberry JDE 4.7,

under the TouchEvent, there are two similar sounding methods:

  • getX(int touch) "return mapped x coordinate"
  • getGlobalX(int touch) "return global x coordindate"

Does anyone know what the difference is between the two? The javadocs talk about mapped vs global but I'm not sure what that means.

Any help poindexter?

Was it helpful?

Solution

getX is the position in your field (button, listfield) and getGlobalX the x-position in your screen.

OTHER TIPS

Like rAyt mentions.

The mapped coordinate is with respect to your current view or field. The global coordinate is with respect to your screen.

This link may help you: http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&thread.id=36636

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top