| 666 | Cursor lastCursor = Cursor.DEFAULT; |
| 667 | |
| 668 | public void setCursor(int kind) { |
| 669 | Cursor c; |
| 670 | switch (kind) { |
| 671 | case PConstants.ARROW: c = Cursor.DEFAULT; break; |
| 672 | case PConstants.CROSS: c = Cursor.CROSSHAIR; break; |
| 673 | case PConstants.HAND: c = Cursor.HAND; break; |
| 674 | case PConstants.MOVE: c = Cursor.MOVE; break; |
| 675 | case PConstants.TEXT: c = Cursor.TEXT; break; |
| 676 | case PConstants.WAIT: c = Cursor.WAIT; break; |
| 677 | default: c = Cursor.DEFAULT; break; |
| 678 | } |
| 679 | lastCursor = c; |
| 680 | canvas.getScene().setCursor(c); |
| 681 | } |
| 682 | |
| 683 | |
| 684 | public void setCursor(PImage image, int hotspotX, int hotspotY) { |