(int kind)
| 1472 | |
| 1473 | |
| 1474 | @Override |
| 1475 | public void setCursor(int kind) { |
| 1476 | // Swap the HAND cursor because MOVE doesn't seem to be available on OS X |
| 1477 | // https://github.com/processing/processing/issues/2358 |
| 1478 | if (PApplet.platform == PConstants.MACOSX && kind == PConstants.MOVE) { |
| 1479 | kind = PConstants.HAND; |
| 1480 | } |
| 1481 | canvas.setCursor(Cursor.getPredefinedCursor(kind)); |
| 1482 | cursorVisible = true; |
| 1483 | this.cursorType = kind; |
| 1484 | } |
| 1485 | |
| 1486 | |
| 1487 | @Override |