summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/luaengine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/mame/luaengine.cpp')
-rw-r--r--src/frontend/mame/luaengine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/frontend/mame/luaengine.cpp b/src/frontend/mame/luaengine.cpp
index fe534302f9e..0c7b9c046fc 100644
--- a/src/frontend/mame/luaengine.cpp
+++ b/src/frontend/mame/luaengine.cpp
@@ -717,7 +717,7 @@ void lua_engine::initialize()
emu["gamename"] = [this] () { return machine().system().type.fullname(); };
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["keypost"] = [this] (const char *keys) { machine().natkeyboard().post_utf8(keys); };
emu["time"] = [this] () { return machine().time().as_double(); };
emu["start"] =
[this](const char *driver)
@@ -1287,6 +1287,7 @@ void lua_engine::initialize()
else
return sol::lua_nil;
});
+ machine_type["natkeyboard"] = sol::property(&running_machine::natkeyboard);
machine_type["paused"] = sol::property(&running_machine::paused);
machine_type["samplerate"] = sol::property(&running_machine::sample_rate);
machine_type["exit_pending"] = sol::property(&running_machine::exit_pending);