On request of some users, AMCAF now supports the reading of a second mouse
in joystick port 1.
Therefore you can now realize your games which require a second mouse in a two player mode.
LIMIT SMOUSE
instruction: define the movement region of the mouse on the screen
Limit Smouse
Limit Smouse x1,y1 To x2,y2
This command defines the region in which the mouse can be moved on the screen.
If the parameters are omitted, the full size of the current screen will be used
as default.
SMOUSE SPEED
instruction: set the speed of the mouse
Smouse Speed value
Smouse Speed sets the speed of the mouse. value therefore represents the factor by
which power of 2 the mouse should be slowed down.
0 is the maximum speed whereas 1 is about the speed of the normal AMOS mouse. Higher values than 4 are not sensible.
SMOUSE X
instruction: set the x coordinate of the mouse
Smouse X xpos
This command sets the x coordinate of the mouse to xpos.
SMOUSE Y
instruction: set the y coordinate of the mouse
Smouse Y ypos
This command sets the y coordinate of the mouse to ypos.
X SMOUSE
function: return the x coordinate of the 2nd mouse
xpos=X Smouse
This command returns the x coordinate of the second mouse.
Y SMOUSE
function: return the y coordinate of the 2nd mouse
ypos=Y Smouse
This command returns the y coordinate of the second mouse.
SMOUSE KEY
function: return the state of the mouse buttons
mk=Smouse Key
This command returns the state of the mouse buttons in port 1.
Bit 0 left mouse button 1 right mouse button 2 middle mouse button