// Copyright (c) 2008-2023 the Urho3D project // License: MIT #include "../Precompiled.h" #include "../AngelScript/APITemplates.h" #include "../AngelScript/Manual_Input.h" namespace Urho3D { // This function is called before ASRegisterGenerated() void ASRegisterManualFirst_Input(asIScriptEngine* engine) { } // ======================================================================================== // template T* Context::GetSubsystem() const | File: ../Core/Context.h static Input* GetInput() { return GetScriptContext()->GetSubsystem(); } // This function is called after ASRegisterGenerated() void ASRegisterManualLast_Input(asIScriptEngine* engine) { // template T* Context::GetSubsystem() const | File: ../Core/Context.h engine->RegisterGlobalFunction("Input@+ get_input()", AS_FUNCTION(GetInput), AS_CALL_CDECL); } }