Pointer; Showpointer; Update - AMX Mouse User Manual

Table of Contents

Advertisement

e.g. *UP.
This command is used to move the text cursor to the current position of the Mouse (as
read by OSWORD 64): The co-ordinates can then be read using POS and VPOS: Since
these co-ordinates are in text characters, it is not suitable for graphics:
If a window has been defined this command will not return the correct co-ordinates.
To overcome this a VDU 26 (restore default window) must be used.
e:g. 10 MODE 4

20 *POINTER 80

30 *SHOWPOINTER

40 REPEAT
50
*MOVEPOINTER
60 UNTIL NOT INKEY-129
70 *HIDEPOINTER

80 *UPDATE

90 *ICON 32
100 *SHOWPOINTER
110 REPEAT
120 *MOVEPOINTER
130 UNTIL INKEY-129
140 GOTO 40
The above program will allow the Pointer to be moved around: When a button is
pressed icon 32 is drawn at the current position. Note that lines 110-130 wait until the button
is released:
N:B. Before entering this program the Pointer should be switched on by *POINTER
ON and pressing BREAK.

Advertisement

Table of Contents
loading

Table of Contents