kodi
Classes | Public Member Functions | List of all members
PERIPHERALS::CAndroidJoystickState Class Reference

Public Member Functions

 CAndroidJoystickState (CAndroidJoystickState &&other) noexcept
 
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)
 

Member Function Documentation

◆ Deinitialize()

void CAndroidJoystickState::Deinitialize ( void  )

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

◆ 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: