()
| 1338 | |
| 1339 | |
| 1340 | @Override |
| 1341 | public void showCursor() { |
| 1342 | // Maybe should always set here? Seems dangerous, since it's likely that |
| 1343 | // Java will set the cursor to something else on its own, and the sketch |
| 1344 | // will be stuck b/c p5 thinks the cursor is set to one particular thing. |
| 1345 | if (!cursorVisible) { |
| 1346 | cursorVisible = true; |
| 1347 | //noinspection MagicConstant |
| 1348 | canvas.setCursor(Cursor.getPredefinedCursor(cursorType)); |
| 1349 | } |
| 1350 | } |
| 1351 | |
| 1352 | |
| 1353 | @Override |