SuperTuxKart
|
Public Member Functions | |
Input::InputType | getType () const |
Returns the type of device this binding is using. | |
int | getId () const |
Returns the id this binding is using. | |
Input::AxisDirection | getDirection () const |
Returns the direction this binding is using. | |
Input::AxisRange | getRange () const |
Returns the range this binding is using. | |
void | set (Input::InputType type, int id, Input::AxisDirection dir, Input::AxisRange range) |
Defines all values of this binding. | |
void | save (std::ofstream &stream) const |
Convert this binding to XML attributes. | |
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 |
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.