From 4899f00893d53e23dbdf069d1efa051bf5cc102b Mon Sep 17 00:00:00 2001 From: halx99 Date: Wed, 31 May 2023 12:31:31 +0000 Subject: [PATCH] Committing genbindings changes --- .../lua-bindings/auto/axlua_base_auto.cpp | 216 ++++++++++++++++++ .../lua-bindings/auto/axlua_base_auto.hpp | 6 + 2 files changed, 222 insertions(+) diff --git a/extensions/scripting/lua-bindings/auto/axlua_base_auto.cpp b/extensions/scripting/lua-bindings/auto/axlua_base_auto.cpp index 28fd283252..eb3871fec1 100644 --- a/extensions/scripting/lua-bindings/auto/axlua_base_auto.cpp +++ b/extensions/scripting/lua-bindings/auto/axlua_base_auto.cpp @@ -101705,6 +101705,216 @@ int lua_ax_base_Device_vibrate(lua_State* tolua_S) #endif return 0; } +int lua_ax_base_Device_prepareImpactFeedbackGenerator(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.Device",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 1) + { + ax::Device::ImpactFeedbackStyle arg0; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Device:prepareImpactFeedbackGenerator"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Device_prepareImpactFeedbackGenerator'", nullptr); + return 0; + } + ax::Device::prepareImpactFeedbackGenerator(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Device:prepareImpactFeedbackGenerator",argc, 1); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Device_prepareImpactFeedbackGenerator'.",&tolua_err); +#endif + return 0; +} +int lua_ax_base_Device_impactOccurred(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.Device",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 1) + { + ax::Device::ImpactFeedbackStyle arg0; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Device:impactOccurred"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Device_impactOccurred'", nullptr); + return 0; + } + ax::Device::impactOccurred(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Device:impactOccurred",argc, 1); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Device_impactOccurred'.",&tolua_err); +#endif + return 0; +} +int lua_ax_base_Device_prepareNotificationFeedbackGenerator(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.Device",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Device_prepareNotificationFeedbackGenerator'", nullptr); + return 0; + } + ax::Device::prepareNotificationFeedbackGenerator(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Device:prepareNotificationFeedbackGenerator",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Device_prepareNotificationFeedbackGenerator'.",&tolua_err); +#endif + return 0; +} +int lua_ax_base_Device_notificationOccurred(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.Device",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 1) + { + ax::Device::NotificationFeedbackType arg0; + ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Device:notificationOccurred"); + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Device_notificationOccurred'", nullptr); + return 0; + } + ax::Device::notificationOccurred(arg0); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Device:notificationOccurred",argc, 1); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Device_notificationOccurred'.",&tolua_err); +#endif + return 0; +} +int lua_ax_base_Device_prepareSelectionFeedbackGenerator(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.Device",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Device_prepareSelectionFeedbackGenerator'", nullptr); + return 0; + } + ax::Device::prepareSelectionFeedbackGenerator(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Device:prepareSelectionFeedbackGenerator",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Device_prepareSelectionFeedbackGenerator'.",&tolua_err); +#endif + return 0; +} +int lua_ax_base_Device_selectionChanged(lua_State* tolua_S) +{ + int argc = 0; + bool ok = true; + +#if _AX_DEBUG >= 1 + tolua_Error tolua_err; +#endif + +#if _AX_DEBUG >= 1 + if (!tolua_isusertable(tolua_S,1,"ax.Device",0,&tolua_err)) goto tolua_lerror; +#endif + + argc = lua_gettop(tolua_S) - 1; + + if (argc == 0) + { + if(!ok) + { + tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Device_selectionChanged'", nullptr); + return 0; + } + ax::Device::selectionChanged(); + lua_settop(tolua_S, 1); + return 1; + } + luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Device:selectionChanged",argc, 0); + return 0; +#if _AX_DEBUG >= 1 + tolua_lerror: + tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Device_selectionChanged'.",&tolua_err); +#endif + return 0; +} static int lua_ax_base_Device_finalize(lua_State* tolua_S) { printf("luabindings: finalizing LUA object (Device)"); @@ -101722,6 +101932,12 @@ int lua_register_ax_base_Device(lua_State* tolua_S) tolua_function(tolua_S,"setAccelerometerInterval", lua_ax_base_Device_setAccelerometerInterval); tolua_function(tolua_S,"setKeepScreenOn", lua_ax_base_Device_setKeepScreenOn); tolua_function(tolua_S,"vibrate", lua_ax_base_Device_vibrate); + tolua_function(tolua_S,"prepareImpactFeedbackGenerator", lua_ax_base_Device_prepareImpactFeedbackGenerator); + tolua_function(tolua_S,"impactOccurred", lua_ax_base_Device_impactOccurred); + tolua_function(tolua_S,"prepareNotificationFeedbackGenerator", lua_ax_base_Device_prepareNotificationFeedbackGenerator); + tolua_function(tolua_S,"notificationOccurred", lua_ax_base_Device_notificationOccurred); + tolua_function(tolua_S,"prepareSelectionFeedbackGenerator", lua_ax_base_Device_prepareSelectionFeedbackGenerator); + tolua_function(tolua_S,"selectionChanged", lua_ax_base_Device_selectionChanged); tolua_endmodule(tolua_S); auto typeName = typeid(ax::Device).name(); // rtti is literal storage g_luaType[reinterpret_cast(typeName)] = "ax.Device"; diff --git a/extensions/scripting/lua-bindings/auto/axlua_base_auto.hpp b/extensions/scripting/lua-bindings/auto/axlua_base_auto.hpp index 0f736b322f..6059f8beba 100644 --- a/extensions/scripting/lua-bindings/auto/axlua_base_auto.hpp +++ b/extensions/scripting/lua-bindings/auto/axlua_base_auto.hpp @@ -2404,6 +2404,12 @@ int register_all_ax_base(lua_State* tolua_S); + + + + + +