Polled every frame by Camera (see camera.cpp): the GLFW/ImGui build's implementation lives in events.cpp and reads ImGui's IO state.
| 33 | // Polled every frame by Camera (see camera.cpp): the GLFW/ImGui build's |
| 34 | // implementation lives in events.cpp and reads ImGui's IO state. |
| 35 | class KeyboardState { |
| 36 | public: |
| 37 | enum class ModifierKey { Control, Alt, Shift }; |
| 38 | enum class Key { Left, Right, Up, Down, Plus, Minus }; |
| 39 | |
| 40 | static bool is_modifier_key_pressed(ModifierKey key); |
| 41 | |
| 42 | static bool is_key_pressed(Key key); |
| 43 | }; |
| 44 | |
| 45 | } // namespace oid |
| 46 |
nothing calls this directly
no outgoing calls
no test coverage detected