|
|
| version 1.2, 2003/10/19 14:48:07 | version 1.4, 2003/10/23 06:26:16 |
|---|---|
| Line 1 | Line 1 |
| #if defined(NP2GCC) | #if defined(NP2GCC) |
| #include "compiler.h" | #include "compiler.h" |
| #include "np2.h" | #include "np2.h" |
| #include "mousemng.h" | #include "mousemng.h" |
| Line 28 void mouseonoff(BYTE flg) { | Line 30 void mouseonoff(BYTE flg) { |
| if ((lastmouse ^ flg) & 1) { | if ((lastmouse ^ flg) & 1) { |
| lastmouse = (flg & 1); | lastmouse = (flg & 1); |
| if (lastmouse & 1) { | if (lastmouse & 1) { |
| CGDisplayHideCursor(kCGDirectMainDisplay); | HideCursor(); |
| getmaincenter(&cp); | getmaincenter(&cp); |
| CGWarpMouseCursorPosition(CGPointMake(cp.h, cp.v)); | CGWarpMouseCursorPosition(CGPointMake(cp.h, cp.v)); |
| } | } |
| else { | else { |
| CGDisplayShowCursor(kCGDirectMainDisplay); | ShowCursor(); |
| } | } |
| } | } |
| } | } |
| Line 129 BYTE mouse_btn(BYTE btn) { | Line 131 BYTE mouse_btn(BYTE btn) { |
| } | } |
| #else | #else |
| #include "compiler.h" | #include "compiler.h" |
| #include "mousemng.h" | #include "mousemng.h" |
| BYTE mousemng_getstat(SINT16 *x, SINT16 *y, int clear) { | BYTE mousemng_getstat(SINT16 *x, SINT16 *y, int clear) { |
| *x = 0; | *x = 0; |
| Line 141 BYTE mousemng_getstat(SINT16 *x, SINT16 | Line 143 BYTE mousemng_getstat(SINT16 *x, SINT16 |
| return(0xa0); | return(0xa0); |
| } | } |
| #endif | |
| #endif | |