DayZ 1.24
Loading...
Searching...
No Matches
MouseButtonInfo Class Reference
Collaboration diagram for MouseButtonInfo:
[legend]

Private Member Functions

void MouseButtonInfo (int button)
 
int GetButtonID ()
 
int GetTimeLastPress ()
 
int GetTimeLastRelease ()
 
void Press ()
 
void Release ()
 
bool IsButtonDown ()
 

Private Attributes

int m_ButtonID
 
int m_TimeLastPress
 
int m_TimeLastRelease
 

Detailed Description

Definition at line 1 of file MouseButtonInfo.c.

Constructor & Destructor Documentation

◆ MouseButtonInfo()

void MouseButtonInfo::MouseButtonInfo ( int button)
inlineprivate

Definition at line 7 of file MouseButtonInfo.c.

References m_ButtonID, m_TimeLastPress, and m_TimeLastRelease.

Member Function Documentation

◆ GetButtonID()

int MouseButtonInfo::GetButtonID ( )
inlineprivate

Definition at line 14 of file MouseButtonInfo.c.

15 {
16 return m_ButtonID;
17 }

References m_ButtonID.

◆ GetTimeLastPress()

int MouseButtonInfo::GetTimeLastPress ( )
inlineprivate

Definition at line 19 of file MouseButtonInfo.c.

20 {
21 return m_TimeLastPress;
22 }

References m_TimeLastPress.

◆ GetTimeLastRelease()

int MouseButtonInfo::GetTimeLastRelease ( )
inlineprivate

Definition at line 24 of file MouseButtonInfo.c.

25 {
26 return m_TimeLastRelease;
27 }

References m_TimeLastRelease.

◆ IsButtonDown()

bool MouseButtonInfo::IsButtonDown ( )
inlineprivate

Definition at line 39 of file MouseButtonInfo.c.

40 {
42 return true;
43
44 return false;
45 }

References m_TimeLastPress, and m_TimeLastRelease.

◆ Press()

void MouseButtonInfo::Press ( )
inlineprivate

Definition at line 29 of file MouseButtonInfo.c.

30 {
31 m_TimeLastPress = GetGame().GetTime();
32 }
proto native CGame GetGame()

References GetGame(), and m_TimeLastPress.

◆ Release()

void MouseButtonInfo::Release ( )
inlineprivate

Definition at line 34 of file MouseButtonInfo.c.

35 {
36 m_TimeLastRelease = GetGame().GetTime();
37 }

References GetGame(), and m_TimeLastRelease.

Member Data Documentation

◆ m_ButtonID

int MouseButtonInfo::m_ButtonID
private

Definition at line 3 of file MouseButtonInfo.c.

Referenced by GetButtonID(), and MouseButtonInfo().

◆ m_TimeLastPress

int MouseButtonInfo::m_TimeLastPress
private

Definition at line 4 of file MouseButtonInfo.c.

Referenced by GetTimeLastPress(), IsButtonDown(), MouseButtonInfo(), and Press().

◆ m_TimeLastRelease

int MouseButtonInfo::m_TimeLastRelease
private

Definition at line 5 of file MouseButtonInfo.c.

Referenced by GetTimeLastRelease(), IsButtonDown(), MouseButtonInfo(), and Release().


The documentation for this class was generated from the following file: