void uic64cart_proc(WPARAM wparam, HWND hwnd) { switch (wparam & 0xffff) { case IDM_CART_ATTACH_CRT: case IDM_CART_ATTACH_8KB: case IDM_CART_ATTACH_16KB: case IDM_CART_ATTACH_AR: case IDM_CART_ATTACH_AR3: case IDM_CART_ATTACH_AR4: case IDM_CART_ATTACH_STARDOS: case IDM_CART_ATTACH_AT: case IDM_CART_ATTACH_EPYX: case IDM_CART_ATTACH_IEEE488: case IDM_CART_ATTACH_RR: case IDM_CART_ATTACH_IDE64: case IDM_CART_ATTACH_SS4: case IDM_CART_ATTACH_SS5: case IDM_CART_ATTACH_STB: case IDM_CART_ENABLE_EXPERT: uic64cart_attach(wparam, hwnd, c64_ui_cartridges); break; case IDM_CART_SET_DEFAULT: cartridge_set_default(); break; case IDM_CART_DETACH: cartridge_detach_image(); break; case IDM_CART_FREEZE: keyboard_clear_keymatrix(); cartridge_trigger_freeze(); break; } }
void uic64cart_proc(video_canvas_t *canvas, int idm) { switch (idm) { case IDM_CART_ATTACH_CRT: case IDM_CART_ATTACH_8KB: case IDM_CART_ATTACH_16KB: case IDM_CART_ATTACH_AR: case IDM_CART_ATTACH_AR3: case IDM_CART_ATTACH_AR4: case IDM_CART_ATTACH_STARDOS: case IDM_CART_ATTACH_AT: case IDM_CART_ATTACH_EPYX: case IDM_CART_ATTACH_IEEE488: case IDM_CART_ATTACH_RR: case IDM_CART_ATTACH_IDE64: case IDM_CART_ATTACH_SS4: case IDM_CART_ATTACH_SS5: case IDM_CART_ATTACH_STB: case IDM_CART_ENABLE_EXPERT: uic64cart_attach(canvas, idm, c64_ui_cartridges); break; case IDM_CART_SET_DEFAULT: cartridge_set_default(); break; case IDM_CART_DETACH: cartridge_detach_image(); break; case IDM_CART_FREEZE: keyboard_clear_keymatrix(); cartridge_trigger_freeze(); break; } }
static UI_MENU_CALLBACK(c64_cart_freeze_callback) { if (activated) { keyboard_clear_keymatrix(); cartridge_trigger_freeze(); } return NULL; }
static int c64c128ui_menu_select_emuwin(int *block) { if (block[0] == Menu_EmuWin_Freeze) { cartridge_trigger_freeze(); return 0; } return -1; }
static TUI_MENU_CALLBACK(freeze_cartridge_callback) { if (been_activated) { keyboard_clear_keymatrix(); cartridge_trigger_freeze(); } /* This way, the "Not Really!" item is always the default one. */ *become_default = 0; return NULL; }
int c64ui_handle_X(int Xvalue) { if (Xvalue==1) return 1; if (Xvalue==2) { cartridge_detach_image(); return 0; } if (Xvalue==3) { cartridge_trigger_freeze(); return 0; } return 0; }
void uic64cart_proc(WPARAM wparam, HWND hwnd, int min_id, int max_id) { if ((wparam & 0xffff) >= (unsigned int)min_id && (wparam & 0xffff) <= (unsigned int)max_id) { uic64cart_attach(wparam, hwnd, built_cartridges); } switch (wparam & 0xffff) { case IDM_CART_ATTACH_CRT: uic64cart_attach(wparam, hwnd, c64_ui_cartridges); break; case IDM_CART_SET_DEFAULT: cartridge_set_default(); break; case IDM_CART_DETACH: cartridge_detach_image(-1); break; case IDM_CART_FREEZE: keyboard_clear_keymatrix(); cartridge_trigger_freeze(); break; } }