class
#include <OE/Application/InputManager.hpp>
InputManager
Contents
- Reference
Base classes
-
template<typename T>class OrbitEngine::Misc::Singleton
Public functions
- auto cursorMoved() const -> bool
- auto isKeyDown(const Key key) const -> bool
- auto isKeyPressed(const Key key) const -> bool
- auto isButtonDown(const Button button) const -> bool
- auto isButtonClicked(const Button button) const -> bool
- auto getWheelDelta() const -> float
-
auto getCursorPosition() const -> Math::
Vec2i -
auto getCursorDelta() const -> Math::
Vec2i - auto getCharQueue() -> std::vector<unsigned int>
- void onInputKey(Key key, bool down)
- void onInputMouseButton(Button button, bool down)
- void onInputMouseMove(int x, int y, bool deltaOnly = false)
- void onInputWheel(float direction)
- void onInputChar(unsigned int c)
- void reset()