|
|
| version 1.5, 2003/10/19 14:48:07 | version 1.6, 2003/10/19 14:56:15 |
|---|---|
| Line 122 static void MenuBarInit(void) { | Line 122 static void MenuBarInit(void) { |
| DrawMenuBar(); | DrawMenuBar(); |
| } | } |
| static void changescreen(BYTE mode) { | static void changescreen(BYTE mode) { |
| (void)mode; | (void)mode; |
| } | } |
| static void HandleMenuChoice(long wParam) { | static void HandleMenuChoice(long wParam) { |
| UINT update; | UINT update; |
| Line 500 static void eventproc(EventRecord *event | Line 498 static void eventproc(EventRecord *event |
| case keyDown: | case keyDown: |
| case autoKey: | case autoKey: |
| mackbd_f12down(((event->message) & keyCodeMask) >> 8); | |
| if (event->modifiers & cmdKey) { | if (event->modifiers & cmdKey) { |
| if (!mackbd_down(1, ((event->message) & keyCodeMask) >> 8)) { | HandleMenuChoice(MenuKey(event->message & charCodeMask)); |
| HandleMenuChoice(MenuKey(event->message & charCodeMask)); | |
| } | |
| } | } |
| else { | else { |
| #if defined(NP2GCC) | #if defined(NP2GCC) |
| if ((((event->message) & keyCodeMask) >> 8 == 0x6f) && (!np2oscfg.F12COPY)) { | if ((((event->message & keyCodeMask) >> 8) == 0x6f) && |
| (!np2oscfg.F12COPY)) { | |
| mouse_running(MOUSE_XOR); | mouse_running(MOUSE_XOR); |
| menu_setmouse(np2oscfg.MOUSE_SW ^ 1); | menu_setmouse(np2oscfg.MOUSE_SW ^ 1); |
| sysmng_update(SYS_UPDATECFG); | sysmng_update(SYS_UPDATECFG); |
| Line 515 static void eventproc(EventRecord *event | Line 513 static void eventproc(EventRecord *event |
| else { | else { |
| mackbd_down(0, ((event->message) & keyCodeMask) >> 8); | mackbd_down(0, ((event->message) & keyCodeMask) >> 8); |
| } | } |
| #else | |
| mackbd_down(0, ((event->message) & keyCodeMask) >> 8); | |
| #endif | #endif |
| } | } |
| break; | break; |
| case keyUp: | case keyUp: |
| mackbd_up(((event->message) & keyCodeMask) >> 8); | mackbd_f12up(((event->message) & keyCodeMask) >> 8); |
| break; | break; |
| #if defined(NP2GCC) | #if defined(NP2GCC) |
| case mouseUp: | case mouseUp: |
| if (controlKey & GetCurrentKeyModifiers()) { | if (controlKey & GetCurrentKeyModifiers()) { |
| Line 538 static void eventproc(EventRecord *event | Line 535 static void eventproc(EventRecord *event |
| } | } |
| // ---- | |
| static void processwait(UINT waitcnt) { | static void processwait(UINT waitcnt) { |
| if (timing_getcount() >= waitcnt) { | if (timing_getcount() >= waitcnt) { |
| Line 593 int main(int argc, char *argv[]) { | Line 592 int main(int argc, char *argv[]) { |
| initload(); | initload(); |
| TRACEINIT(); | |
| SetRect(&wRect, 100, 100, 100, 100); | SetRect(&wRect, 100, 100, 100, 100); |
| hWndMain = NewWindow(0, &wRect, "\pNeko Project II", FALSE, | hWndMain = NewWindow(0, &wRect, "\pNeko Project II", FALSE, |
| noGrowDocProc, (WindowPtr)-1, TRUE, 0); | noGrowDocProc, (WindowPtr)-1, TRUE, 0); |
| if (!hWndMain) { | if (!hWndMain) { |
| TRACETERM(); | |
| macossub_term(); | macossub_term(); |
| dosio_term(); | dosio_term(); |
| return(0); | return(0); |
| Line 622 int main(int argc, char *argv[]) { | Line 624 int main(int argc, char *argv[]) { |
| scrnmode = 0; | scrnmode = 0; |
| if (scrnmng_create(scrnmode) != SUCCESS) { | if (scrnmng_create(scrnmode) != SUCCESS) { |
| TRACETERM(); | |
| macossub_term(); | macossub_term(); |
| dosio_term(); | dosio_term(); |
| DisposeWindow(hWndMain); | DisposeWindow(hWndMain); |
| Line 629 int main(int argc, char *argv[]) { | Line 632 int main(int argc, char *argv[]) { |
| } | } |
| sysmng_initialize(); | sysmng_initialize(); |
| mackbd_initialize(); | |
| pccore_init(); | pccore_init(); |
| S98_init(); | S98_init(); |