2
2
* plus4ui.c - Implementation of the Plus4-specific part of the UI.
5
* Andreas Dehmel <dehmel@forwiss.tu-muenchen.de>
5
* Andreas Dehmel <zarquon@t-online.de>
7
7
* This file is part of VICE, the Versatile Commodore Emulator.
8
8
* See README for copyright notice.
75
76
static unsigned char Plus4norm_sflag[KEYMAP_ENTRIES/8];
76
77
static unsigned char Plus4shift_sflag[KEYMAP_ENTRIES/8];
79
static const char IBarIconName[] = "!viceplus4";
78
80
static const char Plus4keyfile[] = "Vice:PLUS4.ROdflt/vkm";
80
static keymap_t Plus4keys = {
82
static kbd_keymap_t Plus4keys = {
90
int plus4_ui_init(void)
92
return ui_init_named_app("VicePlus4", "!viceplus4");
90
static const conf_iconid_t conf_grey_xplus4[] = {
100
static const char Rsrc_TEDCache[] = "TEDVideoCache";
102
static struct MenuVideoCache {
106
MENU_HEADER("\\MenVCaT", 200),
108
MENU_ITEM_LAST("\\MenVCaTED")
112
static struct MenuDisplayVideoCache {
114
const char *values[1];
115
} MenuDisplayVideoCache = {
116
{NULL, {CONF_WIN_VIDEO, 0},
117
(RO_MenuHead*)&MenuVideoCache, 1, DISP_DESC_BITFIELD, 0},
122
static void plus4ui_grey_out_machine_icons(void)
124
ui_set_icons_grey(NULL, conf_grey_xplus4, 0);
127
static void plus4ui_bind_video_cache_menu(void)
129
ConfigMenus[CONF_MENU_VIDCACHE].menu = (RO_MenuHead*)&MenuVideoCache;
130
ConfigMenus[CONF_MENU_VIDCACHE].desc = (disp_desc_t*)&MenuDisplayVideoCache;
133
static const char *plus4ui_get_machine_ibar_icon(void)
139
int plus4ui_init(void)
143
WimpTaskName = "Vice Plus4";
144
plus4ui_bind_video_cache_menu();
145
msg = ui_emulator_init_prologue(plus4ui_get_machine_ibar_icon());
148
ui_emulator_init_epilogue(msg);
149
plus4ui_grey_out_machine_icons();
155
void plus4ui_shutdown(void)
95
159
int plus4_kbd_init(void)
100
164
kbd_load_keymap(NULL, 0);
101
165
return kbd_init();
106
/* dummy stubs for linker */
107
char *pet_get_keyboard_name(void)
112
int pet_set_model(const char *name, void *extra)
117
char *cbm2_get_keyboard_name(void)
122
int cbm2_set_model(const char *name, void *extra)