diff options
Diffstat (limited to 'src/osd/windows/input.c')
-rw-r--r-- | src/osd/windows/input.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/osd/windows/input.c b/src/osd/windows/input.c index c94d2c67cb5..d0c9bfd8660 100644 --- a/src/osd/windows/input.c +++ b/src/osd/windows/input.c @@ -767,33 +767,34 @@ void windows_osd_interface::customize_input_type_list(simple_list<input_type_ent // loop over the defaults for (entry = typelist.first(); entry != NULL; entry = entry->next()) - switch (entry->type) + switch (entry->type()) { // disable the config menu if the ALT key is down // (allows ALT-TAB to switch between windows apps) case IPT_UI_CONFIGURE: - entry->defseq[SEQ_TYPE_STANDARD].set(KEYCODE_TAB, input_seq::not_code, KEYCODE_LALT, input_seq::not_code, KEYCODE_RALT); + entry->defseq(SEQ_TYPE_STANDARD).set(KEYCODE_TAB, input_seq::not_code, KEYCODE_LALT, input_seq::not_code, KEYCODE_RALT); break; // alt-enter for fullscreen case IPT_OSD_1: - entry->token = "TOGGLE_FULLSCREEN"; - entry->name = "Toggle Fullscreen"; - entry->defseq[SEQ_TYPE_STANDARD].set(KEYCODE_LALT, KEYCODE_ENTER); + entry->configure_osd("TOGGLE_FULLSCREEN", "Toggle Fullscreen"); + entry->defseq(SEQ_TYPE_STANDARD).set(KEYCODE_LALT, KEYCODE_ENTER); break; // alt-F12 for fullscreen snap case IPT_OSD_2: - entry->token = "RENDER_SNAP"; - entry->name = "Take Rendered Snapshot"; - entry->defseq[SEQ_TYPE_STANDARD].set(KEYCODE_LALT, KEYCODE_F12); + entry->configure_osd("RENDER_SNAP", "Take Rendered Snapshot"); + entry->defseq(SEQ_TYPE_STANDARD).set(KEYCODE_LALT, KEYCODE_F12); break; // alt-F11 for fullscreen video case IPT_OSD_3: - entry->token = "RENDER_AVI"; - entry->name = "Record Rendered Video"; - entry->defseq[SEQ_TYPE_STANDARD].set(KEYCODE_LALT, KEYCODE_F11); + entry->configure_osd("RENDER_AVI", "Record Rendered Video"); + entry->defseq(SEQ_TYPE_STANDARD).set(KEYCODE_LALT, KEYCODE_F11); + break; + + // leave everything else alone + default: break; } } |