|
- #ifndef STONEHOLD_MOUSE1351_H
- #define STONEHOLD_MOUSE1351_H
-
- /* Commodore 1351 mouse in control port 1, read once per frame (mouse1351.s, R5).
- ** Pointer = sprite 0, tip at its top-left pixel. */
-
- #define MS_LEFT 0x10
- #define MS_RIGHT 0x01
-
- extern int ms_x, ms_y; /* pointer tip in screen pixels: 0..319, 0..199 */
- extern unsigned char ms_buttons; /* MS_LEFT | MS_RIGHT while held */
-
- void ms_init(void); /* sprite set-up, first sample, pointer at (160, 100) */
- void ms_poll(void); /* call once per frame: IRQs off for about 12 raster lines */
- void __fastcall__ ms_move(int x, int y);
-
- #endif
|