Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
MovingSpeed.h File Reference
#include <map>
#include <stdint.h>
#include <string_view>

Classes

struct  KODI::UTILS::MOVING_SPEED::EventCfg
 
class  KODI::UTILS::MOVING_SPEED::CMovingSpeed
 Class to calculate the velocity for a motion effect. To ensure it works, the GetUpdatedDistance method must be called at each input received (e.g. continuous key press of same key on the keyboard). The motion effect will stop at the event ID change (different key pressed). More...
 

Namespaces

namespace  KODI
 
namespace  KODI::UTILS
 
namespace  KODI::UTILS::MOVING_SPEED
 

Typedefs

typedef std::map< EventType, EventCfgKODI::UTILS::MOVING_SPEED::MapEventConfig
 

Enumerations

enum class  KODI::UTILS::MOVING_SPEED::EventType {
  KODI::UTILS::MOVING_SPEED::NONE = 0 , KODI::UTILS::MOVING_SPEED::UP , KODI::UTILS::MOVING_SPEED::DOWN , KODI::UTILS::MOVING_SPEED::LEFT ,
  KODI::UTILS::MOVING_SPEED::RIGHT
}
 

Functions

EventType KODI::UTILS::MOVING_SPEED::ParseEventType (std::string_view eventType)
 Parse a string event type to enum EventType.