User guide
2. At certain values (Set by the *SENSITIVITY command see. 5.13) the counters
are reset to zero, and a cursor key code is generated instead. Therefore by
moving the Mouse around, the cursor is moved as if the cursor keys were
being used. This mode is compatible with a wide range of commercial
software including programs such as VIEW and Wordwise:
NOTE: The above two modes are incompatible and cannot be used at the same time.
The first mode is the default on power up, and the second mode is selected by a
*MCURSOR ON command (See. 5.9).
Another function of the ROM is to read the Mouse buttons by intercepting the
keyboard vector. This means that the buttons can be programmed to generate key codes in
a similar method to the keyboard (see 5.3). The Mouse will also respond to negative inkeys
-107,-108,-109 and -129 (which checks all keys on the keyboard):
To allow the generation of displays such as fig.3 several commands (such as
*WINDOW and *ICON) have been included in the ROM: which allow windows and icons to
be quickly drawn on the screen.
The Mouse may be used instead of the normal cursor keys by simply entering
*MOUSE ON and *MCURSOR ON (see 5.8 and 5.9) either before loading or after
depending on the program.
The Mouse buttons may be programmed to simulate three separate keys (see 5.3).
These may be simply the RETURN, COPY, and DELETE keys, for use in editing BASIC
programs, or function keys f0, f1, and f2 in various control and shifted modes. In the latter
mode, they may be programmed as normal function keys using the *KEY command.
In AcornSoft's View wordprocessor it is recommended that a *BUTTONS 4 command
with *FX 228,1 is used. Then by programming the function keys 0,1, and 2 the buttons may
be used to enter the most frequently used commands. For example *KEY0 |!|J would set the
left Mouse button up as "Delete character" (f9):