MCPcopy Create free account
hub / github.com/OpenImageDebugger/OpenImageDebugger / KeyboardState

Class KeyboardState

src/visualization/events.h:35–43  ·  view source on GitHub ↗

Polled every frame by Camera (see camera.cpp): the GLFW/ImGui build's implementation lives in events.cpp and reads ImGui's IO state.

Source from the content-addressed store, hash-verified

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.
35class 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected