API Functions/UserKeybinds

Details could be found in "Red 5 Studios\Firefall\system\gui\lib\lib_UserKeybinds.lua".
;Examples:
<nowiki>
-- bind a F12 key press and trigger HelloWorld()
require "lib/lib_UserKeybinds";
function HelloWorld()
end
function OnComponentLoad()
 local ResourceKey = UserKeybinds.Create()
 ResourceKey:RegisterAction("HelloWorld", HelloWorld, "press")
 ResourceKey:BindKey("HelloWorld", "F12")
end
</nowiki>
Category:Addon_API