|
| void | dopointer (void) |
| void | dopointer2 (void) |
| void | domousearea (void) |
| void | domousex (void) |
| | MouseX - the mouse's x position (Blitz mode only).
|
| void | domousey (void) |
| | MouseY - the mouse's y position (Blitz mode only).
|
| void | domousexs (void) |
| | MouseXSpeed - the last horizontal movement, the counter difference of the last vertical blank (Blitz mode only).
|
| void | domouseys (void) |
| | MouseYSpeed - the last vertical movement, the counter difference of the last vertical blank (Blitz mode only).
|
| void | doposmouse (void) |
| void | mouselib_codeinit (void) |
| void | mouselib_sspchk (void) |
| void | domouse (WORD on) |
| | Mouse On|Off - read the mouse in the vertical blank interrupt (Blitz mode only).
|
| void | mouseint (void) |
| static void | doposmouse_c (WORD x, WORD y) |
| | PositionMouse x,y - set the mouse position (Blitz and Amiga mode).
|
| | BLITZ_ALIAS (doposmouse, doposmouse_c) |
| static void | codeinit_c (WORD off) |
| | Library init - keep a5 and the offset of the used slice; mouse area 0,0,320,200, no Pointer.
|
| static void | dopointer_c (UWORD off, WORD chan, ULONG slice) |
| | Pointer Sprite#,Sprite Channel - show a sprite as the mouse pointer (Blitz mode only).
|
| | BLITZ_ALIAS (dopointer, dopointer_c) |
| static void | dopointer2_c (void) |
| | Pointer (no arguments) - no mouse sprite any more (Blitz mode only).
|
| | BLITZ_ALIAS (dopointer2, dopointer2_c) |
| static void | domousearea_c (WORD left, WORD top, WORD right, WORD bottom) |
| | MouseArea Minx,Miny,Maxx,Maxy - the area the mouse position is clipped to (Blitz and Amiga mode).
|
| | BLITZ_ALIAS (domousearea, domousearea_c) |
| static WORD | moveaxis (UBYTE now, UBYTE *last, WORD *speed, WORD pos, WORD min, WORD max) |
| static void | showsprite (ULONG spr, ULONG x, ULONG y, ULONG chan) |
| static ULONG | mouseint_c (void) |
| static void | sspchk_c (WORD chan, const struct bb_slice *slice) |
| | The error check of Pointer Sprite#,Channel (debugger only).
|
| void codeinit_c |
( |
WORD | off | ) |
|
|
static |
Library init - keep a5 and the offset of the used slice; mouse area 0,0,320,200, no Pointer.
A nullsub with !libs{blitzcoplib,$0004}.
- Parameters
-
| off | d0: the offset of blitzcoplib's "used slice" variable in the globals. |
Mouse On|Off - read the mouse in the vertical blank interrupt (Blitz mode only).
On: SetInt (intlib $C100, BLibJsr) with mouseint on level $8015 (vertical blank); Off: ClrInt ($C101).
Fixed (#223): Mouse On initialises the last X counter from $DFF00B and the last Y counter from $DFF00A, as mouseint reads them; the original had them swapped, and the first interrupt moved the mouse by the difference of the two.
- Parameters
-
| on | d0: On (<> 0) or Off (0). |
| void dopointer_c |
( |
UWORD | off, |
|
|
WORD | chan, |
|
|
ULONG | slice ) |
|
static |
Pointer Sprite#,Sprite Channel - show a sprite as the mouse pointer (Blitz mode only).
The interrupt of Mouse On moves the sprite with the mouse, on the slice that was used when Pointer was called. Not a bug: the sprite number is the object offset >> 4 (offset = number * 16, LSR #4).
Errors (debugger only, sspchk): an uninitialized sprite or slice, or a channel the sprite does not fit in.
- Parameters
-
| off | d0: the sprite's object offset (number * 16). |
| chan | d1: the sprite channel. |
| slice | a2: the used slice (!libs blitzcoplib,$1202). |
| void sspchk_c |
( |
WORD | chan, |
|
|
const struct bb_slice * | slice ) |
|
static |
The error check of Pointer Sprite#,Channel (debugger only).
The sprite's channels (word at +6) from d1 on must fit the slice's (word at +6).
Errors: "Uninitialized Sprite", "Uninitialized Slice", "Sprite Channel
Unavailable".
- Parameters
-
| chan | d1: the sprite channel. |
| slice | a2: the used slice; a3 = the sprite. |