Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
mousebuttoninfo.c
Go to the documentation of this file.
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;
12 }
13
15 {
16 return m_ButtonID;
17 }
18
20 {
21 return m_TimeLastPress;
22 }
23
25 {
26 return m_TimeLastRelease;
27 }
28
29 void Press()
30 {
31 m_TimeLastPress = g_Game.GetTime();
32 }
33
34 void Release()
35 {
36 m_TimeLastRelease = g_Game.GetTime();
37 }
38
40 {
42 {
43 return true;
44 }
45
46 return false;
47 }
48}
void MouseButtonInfo(int button)
DayZGame g_Game
Definition dayzgame.c:3942