Dayz
Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Toggle main menu visibility
Loading...
Searching...
No Matches
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
SetParent
void SetParent(Object parent_obj, int pivot)
Set parent of the Effect.
Definition
effect.c:399
x
Icon x
y
Icon y
UP
enum eStaminaZones UP
DOWN
enum eStaminaZones DOWN
Games
Dayz
scripts
2_gamelib
inputmanager.c
Generated by
1.17.0