#Conditional Hooks

$Application: FS2_Open
$On Game Init:
[
include("hotkeys.lua")

Globals.HotKeyManager = HotKeyManager()
]

$On Key Pressed:
[
if (Globals.HotKeyManager) then
    Globals.HotKeyManager:onKeyPressed(hv.Key)
end
]

$On Key Released:
[
if (Globals.HotKeyManager) then
    Globals.HotKeyManager:onKeyReleased(hv.Key)
end
]

#End
