(long window, double x, double y)
| 226 | @Override |
| 227 | public void cursorPos(long window, double x, double y) { |
| 228 | |
| 229 | // System.out.println(" -- cursorPos "+window+" "+x+" "+y+" "+checkThread()); |
| 230 | |
| 231 | Runnable r = () -> { |
| 232 | checkClassLoader(); |
| 233 | GlfwCallback a = adaptors.get(window); |
| 234 | if (a != null) |
| 235 | a.cursorPos(window, x, y); |
| 236 | }; |
| 237 | |
| 238 | if (checkThread()) r.run(); |
| 239 | else { |
| 240 | events.addLast(r); |
| 241 | RunLoop.main.shouldSleep.add(Windows.this); |
| 242 | RunLoop.main.interrupt(); |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | @Override |
| 247 | public void key(long window, int key, int scancode, int action, int mods) { |
| 248 | |
| 249 | // we occasionally get a spurious 'a' (scancode 0) on command-tabbing to our application. If it's just a plain 'a' let's assume that the character callback will handle it |
nothing calls this directly
no test coverage detected