DayZ 1.24
Loading...
Searching...
No Matches
inputManager.c
Go to the documentation of this file.
1#ifdef GAME_TEMPLATE
2
3enum InputTrigger
4{
5 UP,
6 DOWN,
7 PRESSED,
8 VALUE
9};
10
11class ActionManager
12{
13 void ActionManager(ActionManager parent);
14 proto native external bool RegisterAction(string actionName);
15 proto native external bool RegisterContext(string contextName);
16
17 proto native external float LocalValue(string actionName);
18 proto native external bool GetActionTriggered(string actionName);
19
20 proto native external bool ActivateAction(string actionName, int duration = 0);
21 proto native external bool IsActionActive(string actionName);
22
23 proto native external bool ActivateContext(string contextName, int duration = 0);
24 proto native external bool IsContextActive(string contextName);
25
26 proto external void AddActionListener(string actionName, InputTrigger trigger, func callback);
27
28 proto native external void SetContextDebug(string contextName, bool bDebug);
29
30 proto native void SetParent(ActionManager parent);
31 proto native void SetDebug(bool bDebug);
32};
33
34class InputManager: ActionManager
35{
36 private void InputManager(ActionManager parent) {};
37 private void ~InputManager() {};
38
39 proto native external void ResetAction(string actionName);
40 proto native void SetCursorPosition(int x, int y);
41 proto native external bool RegisterActionManager(ActionManager pManager);
42 proto native external bool UnregisterActionManager(ActionManager pManager);
43};
44
45#endif
46
void SetParent(Object parent_obj)
Set parent of the Effect.
Definition Effect.c:378
Icon x
Icon y
enum eStaminaZones UP
enum eStaminaZones DOWN