mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-03 08:00:50 +00:00
better api for mouse
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@269 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include <Mw/MachDep.h>
|
||||
|
||||
typedef struct _MwLLHandler* MwLLHandler;
|
||||
typedef struct _MwLLMouse MwLLMouse;
|
||||
#ifdef _MILSKO
|
||||
typedef struct _MwLL* MwLL;
|
||||
typedef struct _MwLLColor* MwLLColor;
|
||||
@@ -44,6 +45,17 @@ enum MwLLKey {
|
||||
MwLLKeyDown
|
||||
};
|
||||
|
||||
enum MwLLMouse {
|
||||
MwLLMouseLeft = 1,
|
||||
MwLLMouseMiddle = 2,
|
||||
MwLLMouseRight = 3,
|
||||
};
|
||||
|
||||
struct _MwLLMouse {
|
||||
MwPoint point;
|
||||
int button;
|
||||
};
|
||||
|
||||
struct _MwLLHandler {
|
||||
void (*draw)(MwLL handle, void* data);
|
||||
void (*up)(MwLL handle, void* data);
|
||||
|
||||
Reference in New Issue
Block a user