| 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; |
nothing calls this directly
no test coverage detected