|
|
| version 1.4, 2003/11/09 21:57:04 | version 1.5, 2004/02/13 20:31:55 |
|---|---|
| Line 3 | Line 3 |
| #include "mousemng.h" | #include "mousemng.h" |
| #define MOUSEMNG_RANGE 128 | |
| typedef struct { | typedef struct { |
| SINT16 x; | SINT16 x; |
| SINT16 y; | SINT16 y; |
| Line 46 static void mousecapture(BOOL capture) { | Line 49 static void mousecapture(BOOL capture) { |
| if (capture) { | if (capture) { |
| ShowCursor(FALSE); | ShowCursor(FALSE); |
| getmaincenter(&cp); | getmaincenter(&cp); |
| rct.left = cp.x - 200; | rct.left = cp.x - MOUSEMNG_RANGE; |
| rct.right = cp.x + 200; | rct.right = cp.x + MOUSEMNG_RANGE; |
| rct.top = cp.y - 200; | rct.top = cp.y - MOUSEMNG_RANGE; |
| rct.bottom = cp.y + 200; | rct.bottom = cp.y + MOUSEMNG_RANGE; |
| SetCursorPos(cp.x, cp.y); | SetCursorPos(cp.x, cp.y); |
| ClipCursor(&rct); | ClipCursor(&rct); |
| style &= ~(CS_DBLCLKS); | style &= ~(CS_DBLCLKS); |
| Line 66 void mousemng_initialize(void) { | Line 69 void mousemng_initialize(void) { |
| ZeroMemory(&mousemng, sizeof(mousemng)); | ZeroMemory(&mousemng, sizeof(mousemng)); |
| mousemng.btn = uPD8255A_LEFTBIT | uPD8255A_RIGHTBIT; | mousemng.btn = uPD8255A_LEFTBIT | uPD8255A_RIGHTBIT; |
| #if 1 | |
| mousemng.flag = (1 << MOUSEPROC_SYSTEM); | mousemng.flag = (1 << MOUSEPROC_SYSTEM); |
| #else | |
| mousemng.flag = (1 << MOUSEPROC_SYSTEM) + (1 << MOUSEPROC_WINUI) + | |
| (1 << MOUSEPROC_BG); | |
| #endif | |
| } | } |
| void mousemng_callback(void) { | void mousemng_sync(void) { |
| POINT p; | POINT p; |
| POINT cp; | POINT cp; |