User guide
e.g. *SE. 2
As the Mouse is moved it generates various interrupts. These interrupts are used to
add/subtract numbers (sx,sy) from the current coordinates. The purpose of the
*SENSITIVITY command is to set the values of sx and sy:
If sy is not used then it is assumed to be the same as sx. The relationship between
sx/sy and the number added to the co.ordinate is 2^sx as shown in table 1. This gives a
very wide range of sensitivities.
sx/sy Number added/subtracted (n)
0 1
1 2 (MODE 0)
2 4 (MODE 4)
3 8
4 16
5 32
6 64
7 128
Table 1
When a *MCURSOR ON command is used the Mouse doesn't generate coordinates,
but generates cursor keys instead. In this mode the values of sx,sy are used to control how
often these keys are repeated. As the Mouse is moved the co-ordinates are
incremented/decremented (depending on the direction) until it reaches n (as in table 1), the
key is then generated and the relevant co-ordinate set to zero.
e.g. *SH.
This command is used to draw the pointer on the screen using the icons set by
*POINTER i1,i2 (see 5.11). Whatever is under the pointer is stored in the ROM workspace,
which is reserved by *POINTER ON, *BREAK.
It is important that tnis command is used whenever the screen is cleared, and
before *MOVEPOINTER, *HIDEPOINTER commands.
N:B: This command alters zero page &70 to &8F: