OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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 132 of file C4PlayerControl.h.

Constructor & Destructor Documentation

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

Definition at line 136 of file C4PlayerControl.h.

136 : pressed_key(pressed_key), matched_key(matched_key), tTime(tTime) {}
C4TimeMilliseconds tTime

Member Function Documentation

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

Definition at line 137 of file C4PlayerControl.h.

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

Member Data Documentation

C4KeyCodeEx C4PlayerControlRecentKey::matched_key

Definition at line 134 of file C4PlayerControl.h.

Referenced by C4PlayerControlAssignment::IsComboMatched().

C4KeyCodeEx C4PlayerControlRecentKey::pressed_key

Definition at line 134 of file C4PlayerControl.h.

C4TimeMilliseconds C4PlayerControlRecentKey::tTime

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