summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/luaengine.cpp
diff options
context:
space:
mode:
author npwoods <npwoods@mess.org>2019-07-19 07:47:24 -0400
committer npwoods <npwoods@mess.org>2019-07-19 09:29:23 -0400
commit3aa9ee49927cd39b1dd7c06eaa1f4851ebf69b08 (patch)
tree7c509da5184cc10023248ad6db25fed6af704c7b /src/frontend/mame/luaengine.cpp
parenta0ca0e8e7d2ba3f9c86436bb025a2db7f35cc5e6 (diff)
Moving paste() from mame_ui_manager class to natural_keyboard class,
exposing to LUA
Diffstat (limited to 'src/frontend/mame/luaengine.cpp')
-rw-r--r--src/frontend/mame/luaengine.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/frontend/mame/luaengine.cpp b/src/frontend/mame/luaengine.cpp
index fb42192da11..1ded924ccfa 100644
--- a/src/frontend/mame/luaengine.cpp
+++ b/src/frontend/mame/luaengine.cpp
@@ -766,6 +766,7 @@ void lua_engine::initialize()
emu["romname"] = [this](){ return machine().basename(); };
emu["softname"] = [this]() { return machine().options().software_name(); };
emu["keypost"] = [this](const char *keys){ machine().ioport().natkeyboard().post_utf8(keys); };
+ emu["paste"] = [this](){ machine().ioport().natkeyboard().paste(); };
emu["time"] = [this](){ return machine().time().as_double(); };
emu["start"] = [this](const char *driver) {
int i = driver_list::find(driver);