From 37157461313b13a691722b83c87df8d2315457da Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Thu, 15 Jul 2021 04:09:18 +1000 Subject: API cleanups and miscellaneous fixes. emu/ioport.cpp: Allow controller files to override input sequences for inputs that don't use defaults, and to override the toggle setting for digital inputs. emu/config.cpp: Expose configuration level (mostly matters for controller files), improved verbose diagnostic messages, and moved a few things out of the global and preprocessor namespaces. docs: Added documentation for some controller configuration file features. The device mapping feature documentation will be merged in at some point. util/unicode.cpp, emu/input.cpp: API cleanups. --- src/frontend/mame/luaengine_input.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/frontend/mame/luaengine_input.cpp') diff --git a/src/frontend/mame/luaengine_input.cpp b/src/frontend/mame/luaengine_input.cpp index 8b76e10cac5..71fb4d34210 100644 --- a/src/frontend/mame/luaengine_input.cpp +++ b/src/frontend/mame/luaengine_input.cpp @@ -334,7 +334,7 @@ void lua_engine::initialize_input(sol::table &emu) [this] (ioport_field &f) { sol::table result = sol().create_table(); - for (ioport_setting &setting : f.settings()) + for (ioport_setting const &setting : f.settings()) if (setting.enabled()) result[setting.value()] = setting.name(); return result; -- cgit v1.2.3-70-g09d2