AnimEngine
Classes | Public Member Functions | Protected Attributes | List of all members
KeyDebouncer Class Reference
Collaboration diagram for KeyDebouncer:
Collaboration graph
[legend]

Classes

struct  KeyInfo
 

Public Member Functions

 KeyDebouncer (double duration=.2)
 
bool keyPress (GLFWwindow *aWindow, int key)
 
bool isKeyReady (int key) const
 
void setDebounceDuration (int key, double duration)
 

Protected Attributes

std::unordered_map< int, KeyInfomLastTimes
 
Timeline mTimeline
 

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