238 |
/** Get the X and Y coordinates in the main viewport of the given mouse event. |
/** Get the X and Y coordinates in the main viewport of the given mouse event. |
239 |
*/ |
*/ |
240 |
float[] getXYInMain(MouseEvent me, VobKeyer.Main entry) { |
float[] getXYInMain(MouseEvent me, VobKeyer.Main entry) { |
241 |
int cs = currentScene.coords.getCoordsys(entry.coordKey); |
int cs = currentScene.matcher.getCS(entry.coordKey); |
242 |
if(dbg) p("cs: "+cs); |
if(dbg) p("cs: "+cs); |
243 |
|
|
244 |
Vob.RenderInfo inf = currentScene.coords.getRenderInfo(cs); |
Vob.RenderInfo inf = currentScene.coords.getRenderInfo(cs); |
252 |
try { |
try { |
253 |
p("PP client mouse "+me); |
p("PP client mouse "+me); |
254 |
|
|
255 |
final Object key = currentScene.coords |
final Object key = currentScene.getKeyAt(me.getX(), me.getY(), null); |
|
.getKeyAt(currentScene.map, me.getX(), me.getY(), null); |
|
256 |
|
|
257 |
p("Pointed at vob with key "+key); |
p("Pointed at vob with key "+key); |
258 |
|
|