MCPcopy Create free account
hub / github.com/EasyRPG/Player / GetPressedNonSystemButtons

Method GetPressedNonSystemButtons

src/input_source.h:110–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108 return pressed_buttons;
109 }
110 std::bitset<BUTTON_COUNT> GetPressedNonSystemButtons() const {
111 auto pressed = pressed_buttons;
112 for(unsigned i = 0; i < BUTTON_COUNT; ++i) {
113 if (IsSystemButton(static_cast<InputButton>(i))) {
114 pressed[i] = false;
115 }
116 }
117 return pressed;
118 }
119 /** @return Returns raw keystates for reading the keyboard directly.*/
120 const std::bitset<Input::Keys::KEYS_COUNT>& GetPressedKeys() const {
121 return keystates;

Callers

nothing calls this directly

Calls 1

IsSystemButtonFunction · 0.85

Tested by

no test coverage detected