Berserk
Public Member Functions | List of all members
GlfwMouse Class Referencefinal

Glfw device implementation. More...

#include <GlfwInputDevices.hpp>

Inheritance diagram for GlfwMouse:
Inheritance graph
[legend]
Collaboration diagram for GlfwMouse:
Collaboration graph
[legend]

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 Point2fGetPosition () const
 
const Size2fGetDelta () const
 
const StringNameGetName () 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< InputActionmButtons
 

Detailed Description

Glfw device implementation.

Constructor & Destructor Documentation

◆ GlfwMouse()

BRK_NS_BEGIN GlfwMouse::GlfwMouse ( )

◆ ~GlfwMouse()

BRK_API GlfwMouse::~GlfwMouse ( )
overridedefault

Member Function Documentation

◆ UpdateButton()

void GlfwMouse::UpdateButton ( InputMouseButton  button,
InputAction  action 
)

◆ UpdatePosition()

void GlfwMouse::UpdatePosition ( const Point2f pos)

The documentation for this class was generated from the following files: