|
Berserk
|
Glfw device implementation. More...
#include <GlfwInputDevices.hpp>


Public Member Functions | |
| BRK_API | GlfwMouse () |
| BRK_API | ~GlfwMouse () override=default |
| void | UpdatePosition (const Point2f &pos) |
| void | UpdateButton (InputMouseButton button, InputAction action) |
Public Member Functions inherited from Mouse | |
| BRK_API | ~Mouse () override=default |
| const Point2f & | GetPosition () const |
| const Size2f & | GetDelta () const |
| const StringName & | GetName () const |
| InputDeviceState | GetState () const |
| const std::vector< InputAction > & | GetButtonsStates () const |
Public Member Functions inherited from RefCnt | |
| virtual | ~RefCnt () |
| bool | IsUnique () const |
| std::int32_t | GetRefs () const |
| std::int32_t | AddRef () const |
| std::int32_t | RelRef () const |
Additional Inherited Members | |
Static Public Attributes inherited from Mouse | |
| static const uint32 | MAX_BUTTONS = 2 |
Protected Member Functions inherited from RefCnt | |
| virtual void | Destroy () const |
Protected Attributes inherited from Mouse | |
| StringName | mName |
| Point2f | mPosition {} |
| Size2f | mDelta {} |
| InputDeviceState | mState |
| std::vector< InputAction > | mButtons |
Glfw device implementation.
| BRK_NS_BEGIN GlfwMouse::GlfwMouse | ( | ) |
|
overridedefault |
| void GlfwMouse::UpdateButton | ( | InputMouseButton | button, |
| InputAction | action | ||
| ) |
| void GlfwMouse::UpdatePosition | ( | const Point2f & | pos | ) |