Berserk
Public Member Functions | Static Public Member Functions | List of all members
EventJoystick Class Referencefinal

Joystick input event. More...

#include <EventJoystick.hpp>

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

Public Member Functions

BRK_API EventJoystick ()=default
 
BRK_API ~EventJoystick () override=default
 
BRK_API const EventTypeGetEventType () const override
 
BRK_API void SetJoystick (Ref< Joystick > joystick)
 
BRK_API void SetAction (InputAction action)
 
BRK_API void SetButton (InputJoystickButton button)
 
BRK_API const Ref< Joystick > & GetJoystick () const
 
BRK_API InputAction GetAction () const
 
BRK_API InputJoystickButton GetButton () const
 
- Public Member Functions inherited from Event
BRK_API Event ()=default
 
BRK_API ~Event () override=default
 
- 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
 

Static Public Member Functions

static BRK_API const EventTypeGetEventTypeStatic ()
 

Additional Inherited Members

- Protected Member Functions inherited from RefCnt
virtual void Destroy () const
 

Detailed Description

Joystick input event.

Constructor & Destructor Documentation

◆ EventJoystick()

BRK_API EventJoystick::EventJoystick ( )
default

◆ ~EventJoystick()

BRK_API EventJoystick::~EventJoystick ( )
overridedefault

Member Function Documentation

◆ GetAction()

InputAction EventJoystick::GetAction ( ) const

◆ GetButton()

InputJoystickButton EventJoystick::GetButton ( ) const

◆ GetEventType()

BRK_NS_BEGIN const EventType & EventJoystick::GetEventType ( ) const
overridevirtual

Implements Event.

◆ GetEventTypeStatic()

const EventType & EventJoystick::GetEventTypeStatic ( )
static

◆ GetJoystick()

const Ref< Joystick > & EventJoystick::GetJoystick ( ) const

◆ SetAction()

void EventJoystick::SetAction ( InputAction  action)

◆ SetButton()

void EventJoystick::SetButton ( InputJoystickButton  button)

◆ SetJoystick()

void EventJoystick::SetJoystick ( Ref< Joystick joystick)

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