|
|
| version 1.3, 2003/10/19 14:56:15 | version 1.7, 2003/10/28 16:44:44 |
|---|---|
| Line 6 | Line 6 |
| #include "pccore.h" | #include "pccore.h" |
| #include "iocore.h" | #include "iocore.h" |
| #if defined(NP2GCC) | |
| #include "mousemng.h" | |
| #include "menu.h" | |
| #include "sysmng.h" | |
| #endif | |
| #define NC 0xff | #define NC 0xff |
| Line 25 static const BYTE keymac[128] = { | Line 30 static const BYTE keymac[128] = { |
| // TAB, SPC, , BS, , ESC, , apl ; 0x30 | // TAB, SPC, , BS, , ESC, , apl ; 0x30 |
| 0x0f,0x34, NC,0x0e, NC,0x00, NC, NC, | 0x0f,0x34, NC,0x0e, NC,0x00, NC, NC, |
| // sft, ctl, alt, cps, , , , ; 0x38 | // sft, ctl, alt, cps, , , , ; 0x38 |
| 0x70,0x74,0x73,0x79, NC, NC, NC, NC, | 0x70,0x74,0x73,0x71, NC, NC, NC, NC, |
| // , [.], , [*], , , [+], ; 0x40 | // , [.], , [*], , , [+], ; 0x40 |
| NC,0x50, NC,0x45, NC, NC,0x49, NC, | NC,0x50, NC,0x45, NC, NC,0x49, NC, |
| // , , , , ret, , [-], clr ; 0x48 | // , , , , ret, , [-], clr ; 0x48 |
| Line 136 void mackbd_f12down(int keycode) { | Line 141 void mackbd_f12down(int keycode) { |
| } | } |
| else if (np2oscfg.F12COPY == 2) { | else if (np2oscfg.F12COPY == 2) { |
| keystat_senddata(0x60); | keystat_senddata(0x60); |
| } | |
| #if defined(NP2GCC) | |
| else if(!np2oscfg.F12COPY) { | |
| mouse_running(MOUSE_XOR); | |
| menu_setmouse(np2oscfg.MOUSE_SW ^ 1); | |
| sysmng_update(SYS_UPDATECFG); | |
| toggleMenubar(); | |
| } | } |
| #endif | |
| } | |
| else { | |
| BYTE data; | |
| data = keymac[keycode]; | |
| if (data != NC) { | |
| keystat_senddata(data); | |
| } | |
| } | } |
| } | } |
| Line 149 void mackbd_f12up(int keycode) { | Line 169 void mackbd_f12up(int keycode) { |
| else if (np2oscfg.F12COPY == 2) { | else if (np2oscfg.F12COPY == 2) { |
| keystat_senddata(0x60 | 0x80); | keystat_senddata(0x60 | 0x80); |
| } | } |
| } | |
| else { | |
| BYTE data; | |
| data = keymac[keycode]; | |
| if (data != NC) { | |
| keystat_senddata(data | 0x80); | |
| } | |
| } | } |
| } | } |