diff options
author | npwoods <npwoods@mess.org> | 2019-08-04 15:49:31 -0400 |
---|---|---|
committer | R. Belmont <rb6502@users.noreply.github.com> | 2019-08-04 15:49:31 -0400 |
commit | fe3caae2a44c5534353e513563aebcd2dd79e8c2 (patch) | |
tree | 4ab957977dfe2625a029296b4e3ee7512381d7c0 /src/frontend/mame | |
parent | 16b1ed88f69c1b61b947584ccf113fedb298b721 (diff) |
Creating an -attach_window command line parameter on Windows to attach to an existing window (#5381)
* Creating an -attach_window command line parameter on Windows to attach
to an existing window
* Moved -attach_window option to Windows-specific code
* Created an osd_set_aggressive_input_focus() function and exposed to LUA
* Created a dummy implementation of osd_set_aggressive_input_focus() for
SDL
Diffstat (limited to 'src/frontend/mame')
-rw-r--r-- | src/frontend/mame/luaengine.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/frontend/mame/luaengine.cpp b/src/frontend/mame/luaengine.cpp index f5ebec7190d..bb4c585516a 100644 --- a/src/frontend/mame/luaengine.cpp +++ b/src/frontend/mame/luaengine.cpp @@ -2278,6 +2278,7 @@ void lua_engine::initialize() * ui:get_line_height() - current ui font height * ui:get_string_width(str, scale) - get str width with ui font at scale factor of current font size * ui:get_char_width(char) - get width of utf8 glyph char with ui font + * ui:set_aggressive_input_focus(bool) * * ui.single_step * ui.show_fps - fps display enabled @@ -2293,7 +2294,8 @@ void lua_engine::initialize() "get_line_height", &mame_ui_manager::get_line_height, "get_string_width", &mame_ui_manager::get_string_width, // sol converts char32_t to a string - "get_char_width", [](mame_ui_manager &m, uint32_t utf8char) { return m.get_char_width(utf8char); }); + "get_char_width", [](mame_ui_manager &m, uint32_t utf8char) { return m.get_char_width(utf8char); }, + "set_aggressive_input_focus", [](mame_ui_manager &m, bool aggressive_focus) { osd_set_aggressive_input_focus(aggressive_focus); }); /* device_state_entry library |