make ui_active a user option

This commit is contained in:
Michaël Banaan Ananas 2012-08-28 17:20:13 +00:00
parent e59bf2bff6
commit cd5541a157
3 changed files with 4 additions and 1 deletions

View File

@ -157,6 +157,7 @@ const options_entry emu_options::s_option_entries[] =
{ OPTION_MULTIKEYBOARD ";multikey", "0", OPTION_BOOLEAN, "enable separate input from each keyboard device (if present)" },
{ OPTION_MULTIMOUSE, "0", OPTION_BOOLEAN, "enable separate input from each mouse device (if present)" },
{ OPTION_STEADYKEY ";steady", "0", OPTION_BOOLEAN, "enable steadykey support" },
{ OPTION_UI_ACTIVE, "0", OPTION_BOOLEAN, "enable user interface on top of emulated keyboard (if present)" },
{ OPTION_OFFSCREEN_RELOAD ";reload", "0", OPTION_BOOLEAN, "convert lightgun button 2 into offscreen reload" },
{ OPTION_JOYSTICK_MAP ";joymap", "auto", OPTION_STRING, "explicit joystick map, or auto to auto-select" },
{ OPTION_JOYSTICK_DEADZONE ";joy_deadzone;jdz", "0.3", OPTION_FLOAT, "center deadzone range for joystick where change is ignored (0.0 center, 1.0 end)" },

View File

@ -162,6 +162,7 @@ enum
#define OPTION_MULTIKEYBOARD "multikeyboard"
#define OPTION_MULTIMOUSE "multimouse"
#define OPTION_STEADYKEY "steadykey"
#define OPTION_UI_ACTIVE "ui_active"
#define OPTION_OFFSCREEN_RELOAD "offscreen_reload"
#define OPTION_JOYSTICK_MAP "joystick_map"
#define OPTION_JOYSTICK_DEADZONE "joystick_deadzone"
@ -328,6 +329,7 @@ public:
float joystick_deadzone() const { return float_value(OPTION_JOYSTICK_DEADZONE); }
float joystick_saturation() const { return float_value(OPTION_JOYSTICK_SATURATION); }
bool steadykey() const { return bool_value(OPTION_STEADYKEY); }
bool ui_active() const { return bool_value(OPTION_UI_ACTIVE); }
bool offscreen_reload() const { return bool_value(OPTION_OFFSCREEN_RELOAD); }
bool natural_keyboard() const { return bool_value(OPTION_NATURAL_KEYBOARD); }
bool joystick_contradictory() const { return bool_value(OPTION_JOYSTICK_CONTRADICTORY); }

View File

@ -164,7 +164,7 @@ running_machine::running_machine(const machine_config &_config, osd_interface &o
m_new_driver_pending(NULL),
m_soft_reset_timer(NULL),
m_rand_seed(0x9d14abd7),
m_ui_active(false),
m_ui_active(_config.options().ui_active()),
m_basename(_config.gamedrv().name),
m_sample_rate(_config.options().sample_rate()),
m_logfile(NULL),