xbmc
Public Member Functions | List of all members
KODI::GAME::CControllerActivity Class Reference

Class to hold state about the current activity of a controller. More...

#include <ControllerActivity.h>

Public Member Functions

float GetActivation () const
 
void OnButtonPress (bool pressed)
 
void OnButtonMotion (float magnitude)
 
void OnAnalogStickMotion (float x, float y)
 
void OnWheelMotion (float position)
 
void OnThrottleMotion (float position)
 
void OnInputFrame ()
 

Detailed Description

Class to hold state about the current activity of a controller.

The state is held as a single float value, which is updated by the various On*() methods. The activity is the maximum value on a single input frame. The value is saved to m_lastActivity on each call to OnInputFrame().


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