|
|
| version 1.2, 2003/10/19 14:48:07 | version 1.3, 2003/10/20 10:14:27 |
|---|---|
| Line 28 void mouseonoff(BYTE flg) { | Line 28 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(); |
| } | } |
| } | } |
| } | } |