-
Notifications
You must be signed in to change notification settings - Fork 916
olc::HWButton
Javidx9 edited this page Feb 11, 2019
·
1 revision
This structure represents the state of a keyboard or mouse button.
struct HWButton
{
bool bPressed = false; // Set once during the frame the event occurs
bool bReleased = false; // Set once during the frame the event occurs
bool bHeld = false; // Set true for all frames between pressed and released events
};
It's fairly self explanatory!