diff --git a/addons/keybinding/fnc_addKeybind.sqf b/addons/keybinding/fnc_addKeybind.sqf index 7fc65e37e..6797b87d0 100644 --- a/addons/keybinding/fnc_addKeybind.sqf +++ b/addons/keybinding/fnc_addKeybind.sqf @@ -21,6 +21,27 @@ Description: 0xF8: Mouse wheel up 0xF9: Mouse wheel down + 0xFA: Custom user action 1 + 0xFB: Custom user action 2 + 0xFC: Custom user action 3 + 0xFD: Custom user action 4 + 0xFE: Custom user action 5 + 0xFF: Custom user action 6 + 0x100: Custom user action 7 + 0x101: Custom user action 8 + 0x102: Custom user action 9 + 0x103: Custom user action 10 + 0x104: Custom user action 11 + 0x105: Custom user action 12 + 0x106: Custom user action 13 + 0x107: Custom user action 14 + 0x108: Custom user action 15 + 0x109: Custom user action 16 + 0x10A: Custom user action 17 + 0x10B: Custom user action 18 + 0x10C: Custom user action 19 + 0x10D: Custom user action 20 + Parameters: _addon - Name of the registering mod + optional sub-category _action - Id of the key action. @@ -103,7 +124,7 @@ if (!(_upCode isEqualType {})) then { _defaultKeybind params [["_defaultKey", 0, [0]], ["_defaultModifiers", [], [[]]]]; _defaultModifiers params [["_defaultShift", false, [false]], ["_defaultControl", false, [false]], ["_defaultAlt", false, [false]]]; -if (_defaultKey >= 255) then { +if (_defaultKey > 0x10D) then { WARNING_2("Keybind %1's default keybind is invalid [DIK: %2]",_action,_defaultKey); _defaultKey = 0; };