Key Management

Version 2 (Sickboy, 05/23/2010 17:24)

1 1 Sickboy
h1. Key Management
2 1 Sickboy
3 2 Sickboy
CBA provides functionality for Keyhandlers (keyUp and keyDown), "scripted":http://dev-heaven.net/docs/cba/files/events/fnc_addKeyHandler-sqf.html or "read from config":http://dev-heaven.net/docs/cba/files/events/fnc_addKeyHandlerFromConfig-sqf.html.
4 2 Sickboy
next to a lower level API to "displayHandlers":http://dev-heaven.net/docs/cba/files/events/fnc_addDisplayHandler-sqf.html.
5 1 Sickboy
The displayhandler API will make sure the keyhandlers are re-attached after save/close game/start game/load,
6 1 Sickboy
while they keyhandlers on top of that provide a solid API and fast performance (array index).