DayZ
1.24
Loading...
Searching...
No Matches
MouseButtonInfo.c
Go to the documentation of this file.
1
class
MouseButtonInfo
2
{
3
private
int
m_ButtonID
;
4
private
int
m_TimeLastPress
;
5
private
int
m_TimeLastRelease
;
6
7
void
MouseButtonInfo
(
int
button
)
8
{
9
m_ButtonID
=
button
;
10
m_TimeLastPress
= -1;
11
m_TimeLastRelease
= -1;
12
}
13
14
int
GetButtonID
()
15
{
16
return
m_ButtonID
;
17
}
18
19
int
GetTimeLastPress
()
20
{
21
return
m_TimeLastPress
;
22
}
23
24
int
GetTimeLastRelease
()
25
{
26
return
m_TimeLastRelease
;
27
}
28
29
void
Press
()
30
{
31
m_TimeLastPress
=
GetGame
().GetTime();
32
}
33
34
void
Release
()
35
{
36
m_TimeLastRelease
=
GetGame
().GetTime();
37
}
38
39
bool
IsButtonDown
()
40
{
41
if
(
m_TimeLastRelease
<
m_TimeLastPress
)
42
return
true
;
43
44
return
false
;
45
}
46
}
MouseButtonInfo
Definition
MouseButtonInfo.c:2
MouseButtonInfo::m_ButtonID
int m_ButtonID
Definition
MouseButtonInfo.c:3
MouseButtonInfo::GetTimeLastPress
int GetTimeLastPress()
Definition
MouseButtonInfo.c:19
MouseButtonInfo::IsButtonDown
bool IsButtonDown()
Definition
MouseButtonInfo.c:39
MouseButtonInfo::GetTimeLastRelease
int GetTimeLastRelease()
Definition
MouseButtonInfo.c:24
MouseButtonInfo::m_TimeLastPress
int m_TimeLastPress
Definition
MouseButtonInfo.c:4
MouseButtonInfo::m_TimeLastRelease
int m_TimeLastRelease
Definition
MouseButtonInfo.c:5
MouseButtonInfo::Release
void Release()
Definition
MouseButtonInfo.c:34
MouseButtonInfo::Press
void Press()
Definition
MouseButtonInfo.c:29
MouseButtonInfo::GetButtonID
int GetButtonID()
Definition
MouseButtonInfo.c:14
MouseButtonInfo::MouseButtonInfo
void MouseButtonInfo(int button)
Definition
MouseButtonInfo.c:7
Param3
Definition
EntityAI.c:95
GetGame
proto native CGame GetGame()
scripts
4_World
Classes
MouseButtonInfo.c
Generated by
1.10.0