|
|
| version 1.1, 2004/07/14 16:01:40 | version 1.3, 2005/03/12 12:36:57 |
|---|---|
| Line 10 | Line 10 |
| * 2. Redistributions in binary form must reproduce the above copyright | * 2. Redistributions in binary form must reproduce the above copyright |
| * notice, this list of conditions and the following disclaimer in the | * notice, this list of conditions and the following disclaimer in the |
| * documentation and/or other materials provided with the distribution. | * documentation and/or other materials provided with the distribution. |
| * 3. The name of the author may not be used to endorse or promote products | |
| * derived from this software without specific prior written permission. | |
| * | * |
| * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
| * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
| Line 39 typedef struct { | Line 37 typedef struct { |
| int lastmouse; // working | int lastmouse; // working |
| short mousex; | short mousex; |
| short mousey; | short mousey; |
| BYTE mouseb; | UINT8 mouseb; |
| BYTE mouse_move_ratio; | UINT8 mouse_move_ratio; |
| BYTE mouse_move_mul; | UINT8 mouse_move_mul; |
| BYTE mouse_move_div; | UINT8 mouse_move_div; |
| GdkPixmap *cursor_pixmap; | GdkPixmap *cursor_pixmap; |
| GdkCursor *cursor; | GdkCursor *cursor; |
| Line 118 mouseonoff(int flag) | Line 116 mouseonoff(int flag) |
| } | } |
| } | } |
| BYTE | UINT8 |
| mouse_flag(void) | mouse_flag(void) |
| { | { |
| Line 126 mouse_flag(void) | Line 124 mouse_flag(void) |
| } | } |
| void | void |
| mouse_running(BYTE flg) | mouse_running(UINT8 flg) |
| { | { |
| BYTE mf = ms.mouserunning; | UINT8 mf = ms.mouserunning; |
| switch (flg & 0xc0) { | switch (flg & 0xc0) { |
| case 0x00: | case 0x00: |
| Line 165 mousemng_callback(void) | Line 163 mousemng_callback(void) |
| } | } |
| } | } |
| BYTE | UINT8 |
| mouse_btn(BYTE button) | mouse_btn(UINT8 button) |
| { | { |
| if ((ms.lastmouse & 1) == 0) | if ((ms.lastmouse & 1) == 0) |
| Line 192 mouse_btn(BYTE button) | Line 190 mouse_btn(BYTE button) |
| return 1; | return 1; |
| } | } |
| BYTE | UINT8 |
| mousemng_getstat(short *x, short *y, int clear) | mousemng_getstat(short *x, short *y, int clear) |
| { | { |
| Line 214 mousemng_getstat(short *x, short *y, int | Line 212 mousemng_getstat(short *x, short *y, int |
| } | } |
| void | void |
| mousemng_set_ratio(BYTE new_ratio) | mousemng_set_ratio(UINT8 new_ratio) |
| { | { |
| np2oscfg.mouse_move_ratio = new_ratio; | np2oscfg.mouse_move_ratio = new_ratio; |