mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 00:29:31 +00:00
Changed mouse_down --> mouse_buttons, added MOUSE_BTN_LEFT define, changed
return code of mouse_init. git-svn-id: svn://svn.cc65.org/cc65/trunk@439 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
f681d0fdad
commit
8f6b114bb8
@ -50,16 +50,21 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* Definitions */
|
/* Definitions */
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
/* the different mouse types */
|
|
||||||
#define MOUSE_TRAKBALL 0
|
/* The different mouse types */
|
||||||
#define MOUSE_ST 1
|
#define MOUSE_TRAKBALL 0
|
||||||
#define MOUSE_AMIGA 2
|
#define MOUSE_ST 1
|
||||||
#define MOUSE_C64 3 /* 1351 mouse */
|
#define MOUSE_AMIGA 2
|
||||||
|
#define MOUSE_C64 3 /* 1351 mouse */
|
||||||
|
|
||||||
|
/* Mouse button masks */
|
||||||
|
#define MOUSE_BTN_LEFT 0x10
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -69,7 +74,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
void __fastcall__ mouse_init (unsigned char port, unsigned char sprite, unsigned char type);
|
unsigned char __fastcall__ mouse_init (unsigned char port,
|
||||||
|
unsigned char sprite,
|
||||||
|
unsigned char type);
|
||||||
/* Setup the mouse interrupt handler. If the sprite value is != zero, the
|
/* Setup the mouse interrupt handler. If the sprite value is != zero, the
|
||||||
* mouse routines will manage the sprite with this number. That means, it
|
* mouse routines will manage the sprite with this number. That means, it
|
||||||
* is moved if the mouse is moved (provided that the mouse cursor is visible),
|
* is moved if the mouse is moved (provided that the mouse cursor is visible),
|
||||||
@ -81,6 +88,9 @@ void __fastcall__ mouse_init (unsigned char port, unsigned char sprite, unsigned
|
|||||||
* After calling this function, the mouse is invisble, the cursor is placed
|
* After calling this function, the mouse is invisble, the cursor is placed
|
||||||
* at 0/0 (upper left corner), and the bounding box is reset to cover the
|
* at 0/0 (upper left corner), and the bounding box is reset to cover the
|
||||||
* whole screen. Call mouse_show once to make the mouse cursor visible.
|
* whole screen. Call mouse_show once to make the mouse cursor visible.
|
||||||
|
* The function will return zero if a mouse was not found and a non zero
|
||||||
|
* value if the mouse was found and initialized (or if there is no way to
|
||||||
|
* detect a mouse reliably).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void mouse_done (void);
|
void mouse_done (void);
|
||||||
@ -125,8 +135,9 @@ void __fastcall__ mouse_move (int x, int y);
|
|||||||
* inside the bounding box.
|
* inside the bounding box.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
unsigned char mouse_down(void);
|
unsigned char mouse_buttons (void);
|
||||||
/* Get mouse button state (0 - up, 1 - dowm)
|
/* Return a bit mask encoding the states of the mouse buttons. Use the
|
||||||
|
* MOUSE_BTN_XXX flags to decode a specific button.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void mouse_info (void);
|
void mouse_info (void);
|
||||||
|
Loading…
Reference in New Issue
Block a user