C4PlayerControlRecentKey Struct Reference

#include <C4PlayerControl.h>

Collaboration diagram for C4PlayerControlRecentKey:

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 

Definition at line 133 of file C4PlayerControl.h.

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

Member Function Documentation

◆ operator==()

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

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

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.

◆ tTime

C4TimeMilliseconds C4PlayerControlRecentKey::tTime

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