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  UTILS::MOVING_SPEED::EventCfg
 
class  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  UTILS
 
namespace  UTILS::MOVING_SPEED
 

Typedefs

typedef std::map< EventType, EventCfgUTILS::MOVING_SPEED::MapEventConfig
 

Enumerations

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

Functions

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