OpenClonk
C4PlayerControlRecentKey Struct Reference

#include <C4PlayerControl.h>

Collaboration diagram for C4PlayerControlRecentKey:
[legend]

Public Member Functions

 C4PlayerControlRecentKey (const C4KeyCodeEx &pressed_key, const C4KeyCodeEx &matched_key, C4TimeMilliseconds tTime)
 
bool operator== (const C4KeyCodeEx &cmp)
 

Public Attributes

C4KeyCodeEx pressed_key
 
C4KeyCodeEx matched_key
 
C4TimeMilliseconds tTime
 

Detailed Description

Definition at line 129 of file C4PlayerControl.h.

Constructor & Destructor Documentation

◆ C4PlayerControlRecentKey()

C4PlayerControlRecentKey::C4PlayerControlRecentKey ( const C4KeyCodeEx pressed_key,
const C4KeyCodeEx matched_key,
C4TimeMilliseconds  tTime 
)
inline

Member Function Documentation

◆ operator==()

bool C4PlayerControlRecentKey::operator== ( const C4KeyCodeEx cmp)
inline

Definition at line 134 of file C4PlayerControl.h.

134 { return pressed_key==cmp; } // comparison op for finding items in lists: Search for the pressed key only

References pressed_key.

Member Data Documentation

◆ matched_key

C4KeyCodeEx C4PlayerControlRecentKey::matched_key

Definition at line 131 of file C4PlayerControl.h.

Referenced by C4PlayerControlAssignment::IsComboMatched().

◆ pressed_key

C4KeyCodeEx C4PlayerControlRecentKey::pressed_key

Definition at line 131 of file C4PlayerControl.h.

Referenced by operator==().

◆ tTime

C4TimeMilliseconds C4PlayerControlRecentKey::tTime

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