1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-02-21 20:27:13 +01:00

Export the function that must be used to obtain unused keybind slots.

This commit is contained in:
Sandu Liviu Catalin 2016-06-20 08:01:59 +03:00
parent c5c3af4f5e
commit dae66ca39f

View File

@ -256,6 +256,12 @@ static Array Keybind_FindActive()
return Var< Array >(DefaultVM::Get(), -1).value; return Var< Array >(DefaultVM::Get(), -1).value;
} }
// ------------------------------------------------------------------------------------------------
static SQInteger Keybind_UnusedSlot()
{
return _Func->GetKeyBindUnusedSlot();
}
// ================================================================================================ // ================================================================================================
void Register_CKeybind(HSQUIRRELVM vm) void Register_CKeybind(HSQUIRRELVM vm)
{ {
@ -287,6 +293,7 @@ void Register_CKeybind(HSQUIRRELVM vm)
.StaticFunc(_SC("FindByID"), &Keybind_FindByID) .StaticFunc(_SC("FindByID"), &Keybind_FindByID)
.StaticFunc(_SC("FindByTag"), &Keybind_FindByTag) .StaticFunc(_SC("FindByTag"), &Keybind_FindByTag)
.StaticFunc(_SC("FindActive"), &Keybind_FindActive) .StaticFunc(_SC("FindActive"), &Keybind_FindActive)
.StaticFunc(_SC("UnusedSlot"), &Keybind_UnusedSlot)
// Static Overloads // Static Overloads
.StaticOverload< Object & (*)(Int32, bool, Int32, Int32, Int32) > .StaticOverload< Object & (*)(Int32, bool, Int32, Int32, Int32) >
(_SC("CreateEx"), &Keybind_CreateEx) (_SC("CreateEx"), &Keybind_CreateEx)