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) |
![]() | |
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 |
![]() | |
virtual | ~RefCnt () |
bool | IsUnique () const |
std::int32_t | GetRefs () const |
std::int32_t | AddRef () const |
std::int32_t | RelRef () const |
Additional Inherited Members | |
![]() | |
static const uint32 | MAX_BUTTONS = 2 |
![]() | |
virtual void | Destroy () const |
![]() | |
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 | ) |