SuperTuxKart
Public Member Functions | Private Attributes | List of all members
Binding Class Reference
Inheritance diagram for Binding:
Inheritance graph
[legend]

Public Member Functions

Input::InputType getType () const
 Returns the type of device this binding is using. More...
 
int getId () const
 Returns the id this binding is using. More...
 
Input::AxisDirection getDirection () const
 Returns the direction this binding is using. More...
 
Input::AxisRange getRange () const
 Returns the range this binding is using. More...
 
void set (Input::InputType type, int id, Input::AxisDirection dir, Input::AxisRange range, wchar_t character)
 Defines all values of this binding. More...
 
void save (std::ofstream &stream) const
 Convert this binding to XML attributes. More...
 
bool load (const XMLNode *action)
 
irr::core::stringw getAsString () const
 Returns a string representing this binding, which can be displayed on the screen.
 

Private Attributes

Input::InputType m_type
 
int m_id
 
Input::AxisDirection m_dir
 
Input::AxisRange m_range
 
wchar_t m_character
 

Member Function Documentation

◆ getDirection()

Input::AxisDirection Binding::getDirection ( ) const
inline

Returns the direction this binding is using.

◆ getId()

int Binding::getId ( ) const
inline

Returns the id this binding is using.

◆ getRange()

Input::AxisRange Binding::getRange ( ) const
inline

Returns the range this binding is using.

◆ getType()

Input::InputType Binding::getType ( ) const
inline

Returns the type of device this binding is using.

◆ save()

void Binding::save ( std::ofstream &  stream) const

Convert this binding to XML attributes.

The full XML node is actually written by device_config, so we only have to add the attributes here.

◆ set()

void Binding::set ( Input::InputType  type,
int  id,
Input::AxisDirection  dir,
Input::AxisRange  range,
wchar_t  character 
)
inline

Defines all values of this binding.


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