(int kind)
| 1303 | |
| 1304 | |
| 1305 | @Override |
| 1306 | public void setCursor(int kind) { |
| 1307 | // Swap the HAND cursor because MOVE doesn't seem to be available on OS X |
| 1308 | // https://github.com/processing/processing/issues/2358 |
| 1309 | if (PApplet.platform == PConstants.MACOS && kind == PConstants.MOVE) { |
| 1310 | kind = PConstants.HAND; |
| 1311 | } |
| 1312 | //noinspection MagicConstant |
| 1313 | canvas.setCursor(Cursor.getPredefinedCursor(kind)); |
| 1314 | cursorVisible = true; |
| 1315 | this.cursorType = kind; |
| 1316 | } |
| 1317 | |
| 1318 | |
| 1319 | @Override |