views:

200

answers:

2

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?

+4  A: 

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

Henrik P. Hessel
thanks. i appreciate the clean, simple answer.
yamspog
A: 

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%5Fdev&thread.id=36636

chollida