Added a MESS-specific "paste" command; used to paste clipboard data into MESS's

natural keyboard
This commit is contained in:
Nathan Woods 2008-05-03 17:56:41 +00:00
parent 53b0096294
commit dfe585bf85
3 changed files with 9 additions and 1 deletions

View File

@ -981,7 +981,8 @@ static const input_port_default_entry default_ports_builtin[] =
INPUT_PORT_DIGITAL_DEF( 0, IPG_UI, UI_SHOW_PROFILER, "Show Profiler", SEQ_DEF_2(KEYCODE_F11, KEYCODE_LSHIFT) )
#ifdef MESS
INPUT_PORT_DIGITAL_DEF( 0, IPG_UI, UI_TOGGLE_UI, "UI Toggle", SEQ_DEF_1(KEYCODE_SCRLOCK) )
#endif
INPUT_PORT_DIGITAL_DEF( 0, IPG_UI, UI_PASTE, "UI Paste Text", SEQ_DEF_1(KEYCODE_PRTSCR) )
#endif /* MESS */
INPUT_PORT_DIGITAL_DEF( 0, IPG_UI, UI_TOGGLE_DEBUG, "Toggle Debugger", SEQ_DEF_1(KEYCODE_F5) )
INPUT_PORT_DIGITAL_DEF( 0, IPG_UI, UI_SAVE_STATE, "Save State", SEQ_DEF_2(KEYCODE_F7, KEYCODE_LSHIFT) )
INPUT_PORT_DIGITAL_DEF( 0, IPG_UI, UI_LOAD_STATE, "Load State", SEQ_DEF_3(KEYCODE_F7, SEQCODE_NOT, KEYCODE_LSHIFT) )

View File

@ -283,6 +283,7 @@ enum
IPT_UI_SHOW_PROFILER,
IPT_UI_TOGGLE_UI,
IPT_UI_TOGGLE_DEBUG,
IPT_UI_PASTE,
IPT_UI_SAVE_STATE,
IPT_UI_LOAD_STATE,
IPT_UI_ADD_CHEAT,

View File

@ -1377,6 +1377,12 @@ static UINT32 handler_ingame(running_machine *machine, UINT32 state)
else
video_set_fastforward(FALSE);
#ifdef MESS
/* paste? */
if (input_ui_pressed(IPT_UI_PASTE))
ui_paste(machine);
#endif /* MESS */
return 0;
}