Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
PERIPHERALS::CAndroidJoystickState Class Reference

#include <AndroidJoystickState.h>

Public Member Functions

 CAndroidJoystickState ()=default
 
 CAndroidJoystickState (CAndroidJoystickState &&other) noexcept
 
virtual ~CAndroidJoystickState ()
 
int GetDeviceId () const
 
unsigned int GetButtonCount () const
 
unsigned int GetAxisCount () const
 
bool Initialize (const CJNIViewInputDevice &inputDevice)
 
void Deinitialize ()
 
bool ProcessEvent (const AInputEvent *event)
 
void GetEvents (std::vector< kodi::addon::PeripheralEvent > &events)
 

Constructor & Destructor Documentation

◆ CAndroidJoystickState() [1/2]

PERIPHERALS::CAndroidJoystickState::CAndroidJoystickState ( )
default

◆ CAndroidJoystickState() [2/2]

CAndroidJoystickState::CAndroidJoystickState ( CAndroidJoystickState && other)
noexcept

◆ ~CAndroidJoystickState()

CAndroidJoystickState::~CAndroidJoystickState ( )
virtual

Member Function Documentation

◆ Deinitialize()

void CAndroidJoystickState::Deinitialize ( void )

Deinitialize the joystick object. GetEvents() will not be called after deinitialization.

◆ GetAxisCount()

unsigned int PERIPHERALS::CAndroidJoystickState::GetAxisCount ( ) const
inline

◆ GetButtonCount()

unsigned int PERIPHERALS::CAndroidJoystickState::GetButtonCount ( ) const
inline

◆ GetDeviceId()

int PERIPHERALS::CAndroidJoystickState::GetDeviceId ( ) const
inline

◆ GetEvents()

void CAndroidJoystickState::GetEvents ( std::vector< kodi::addon::PeripheralEvent > & events)

Get events that have occurred since the last call to GetEvents()

◆ Initialize()

bool CAndroidJoystickState::Initialize ( const CJNIViewInputDevice & inputDevice)

Initialize the joystick object. Joystick will be initialized before the first call to GetEvents().

◆ ProcessEvent()

bool CAndroidJoystickState::ProcessEvent ( const AInputEvent * event)

Processes the given input event.


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