Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
KODI::UTILS::MOVING_SPEED::EventCfg Struct Reference

#include <MovingSpeed.h>

Public Member Functions

 EventCfg (float acceleration, float maxVelocity, uint32_t resetTimeout)
 
 EventCfg (float acceleration, float maxVelocity, uint32_t resetTimeout, float delta)
 
bool operator== (const EventCfg &right) const
 

Public Attributes

float m_acceleration
 
float m_maxVelocity
 
uint32_t m_resetTimeout
 
float m_delta {0}
 

Constructor & Destructor Documentation

◆ EventCfg() [1/2]

KODI::UTILS::MOVING_SPEED::EventCfg::EventCfg ( float acceleration,
float maxVelocity,
uint32_t resetTimeout )
inline
Parameters
accelerationAcceleration in pixels per second (px/sec)
maxVelocityMax movement speed, it depends from acceleration value, a suitable value could be (acceleration value)*3. Set 0 to disable it
resetTimeoutResets acceleration speed if idle for specified millisecs

◆ EventCfg() [2/2]

KODI::UTILS::MOVING_SPEED::EventCfg::EventCfg ( float acceleration,
float maxVelocity,
uint32_t resetTimeout,
float delta )
inline
Parameters
accelerationAcceleration in pixels per second (px/sec)
maxVelocityMax movement speed, it depends from acceleration value, a suitable value could be (acceleration value)*3. Set 0 to disable it
resetTimeoutResets acceleration speed if idle for specified millisecs
deltaSpecify the minimal increment step, and the result of distance value will be rounded by delta. Set 0 to disable it

Member Function Documentation

◆ operator==()

bool KODI::UTILS::MOVING_SPEED::EventCfg::operator== ( const EventCfg & right) const
inline

Member Data Documentation

◆ m_acceleration

float KODI::UTILS::MOVING_SPEED::EventCfg::m_acceleration

◆ m_delta

float KODI::UTILS::MOVING_SPEED::EventCfg::m_delta {0}

◆ m_maxVelocity

float KODI::UTILS::MOVING_SPEED::EventCfg::m_maxVelocity

◆ m_resetTimeout

uint32_t KODI::UTILS::MOVING_SPEED::EventCfg::m_resetTimeout

The documentation for this struct was generated from the following file: