Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
inputmanager.c
Go to the documentation of this file.
1 #ifdef GAME_TEMPLATE
2 
3 enum InputTrigger
4 {
5  UP,
6  DOWN,
7  PRESSED,
8  VALUE
9 };
10 
11 class 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 
34 class 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 
UP
@ UP
Definition: inventory.c:22
y
Icon y
func
Definition: enconvert.c:10
DOWN
@ DOWN
Definition: inventory.c:23
x
Icon x
SetParent
void SetParent(Object parent_obj)
Set parent of the Effect.
Definition: effect.c:394