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

Classes

class  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...
 
struct  EventCfg
 

Typedefs

typedef std::map< EventType, EventCfgMapEventConfig
 

Enumerations

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

Functions

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

Typedef Documentation

◆ MapEventConfig

Enumeration Type Documentation

◆ EventType

enum class UTILS::MOVING_SPEED::EventType
strong
Enumerator
NONE 
UP 
DOWN 
LEFT 
RIGHT 

Function Documentation

◆ ParseEventType()

UTILS::MOVING_SPEED::EventType UTILS::MOVING_SPEED::ParseEventType ( std::string_view eventType)

Parse a string event type to enum EventType.

Parameters
eventTypeThe event type as string
Returns
The EventType if has success, otherwise EventType::NONE