MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / HWButton

Class HWButton

olcPixelGameEngine.h:1029–1034  ·  view source on GitHub ↗

O------------------------------------------------------------------------------O | olc::HWButton - Represents the state of a hardware button (mouse/key/joy) | O------------------------------------------------------------------------------O

Source from the content-addressed store, hash-verified

1027 // | olc::HWButton - Represents the state of a hardware button (mouse/key/joy) |
1028 // O------------------------------------------------------------------------------O
1029 struct HWButton
1030 {
1031 bool bPressed = false; // Set once during the frame the event occurs
1032 bool bReleased = false; // Set once during the frame the event occurs
1033 bool bHeld = false; // Set true for all frames between pressed and released events
1034 };
1035
1036
1037 // O------------------------------------------------------------------------------O

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected