diff options
| author | 2025-06-17 07:52:48 -0400 | |
|---|---|---|
| committer | 2025-06-17 07:52:48 -0400 | |
| commit | 0e63bce022384babeddf7da1304e86f246690576 (patch) | |
| tree | 3b8c01f86a506289cad1fe2c9e8d617a06cf76e5 | |
| parent | ae23e1eff904b011ffa3d24fdcc03d676e5a8d1e (diff) | |
Reenabling the write accessor for the LUA input_class enabled property (#7564)
This is used by BletchMAME to toggle mouse capture on and off
| -rw-r--r-- | src/frontend/mame/luaengine_input.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/frontend/mame/luaengine_input.cpp b/src/frontend/mame/luaengine_input.cpp index 8ec97321cfb..914431f82b2 100644 --- a/src/frontend/mame/luaengine_input.cpp +++ b/src/frontend/mame/luaengine_input.cpp @@ -468,7 +468,7 @@ void lua_engine::initialize_input(sol::table &emu) auto input_class_type = sol().registry().new_usertype<input_class>("input_class", sol::no_constructor); input_class_type["name"] = sol::property(&input_class::name); - input_class_type["enabled"] = sol::property(&input_class::enabled); + input_class_type["enabled"] = sol::property(&input_class::enabled, &input_class::enable); input_class_type["multi"] = sol::property(&input_class::multi); input_class_type["devices"] = sol::property( [this] (input_class &devclass) |
