As a Sprite
The mouse-pointer is available as an option in some sprite-chooser arguments, such as Go to (), Point Towards (), Touching ()?, and Distance to (). It is counted as a sprite in these cases because it has a position on the Stage, and can be sensed.
Being an object on the screen, the mouse has a position on the coordinate system.
On the right, directly beneath the Stage, is the mouse position readout. It shows the X and Y positions of the mouse-pointer. Unlike sprites, these positions can be off of the coordinates of the stage.
Changing the Cursor
To change the cursor, open a Squeak Workspace and use the following code:
Cursor (name) showWhile:(some-action)
Cursor crossHair showWhile:[Sensor waitButton]
The cursors available are:
- Right arrow
- Down arrow
- Up arrow
- Question mark
- Resize diag
- Resize horiz