24#include "input/input.hpp"
25#include "utils/no_copy.hpp"
39 Input::InputType m_type;
41 Input::AxisDirection m_dir;
42 Input::AxisRange m_range;
45 Input::InputType
getType()
const {
return m_type; }
48 int getId()
const {
return m_id;}
54 Input::AxisRange
getRange()
const {
return m_range;}
57 void set(Input::InputType type,
int id,
58 Input::AxisDirection dir,
59 Input::AxisRange range)
61 m_type = type; m_id=id; m_dir=dir; m_range=range;
65 void save(std::ofstream& stream)
const;
66 bool load(
const XMLNode *action);
Definition: binding.hpp:37
int getId() const
Returns the id this binding is using.
Definition: binding.hpp:48
irr::core::stringw getAsString() const
Returns a string representing this binding, which can be displayed on the screen.
Definition: binding.cpp:78
void save(std::ofstream &stream) const
Convert this binding to XML attributes.
Definition: binding.cpp:30
Input::AxisDirection getDirection() const
Returns the direction this binding is using.
Definition: binding.hpp:51
Input::InputType getType() const
Returns the type of device this binding is using.
Definition: binding.hpp:45
Input::AxisRange getRange() const
Returns the range this binding is using.
Definition: binding.hpp:54
void set(Input::InputType type, int id, Input::AxisDirection dir, Input::AxisRange range)
Defines all values of this binding.
Definition: binding.hpp:57
Utility class, you can inherit from this class to disallow the assignment operator and copy construct...
Definition: no_copy.hpp:26
utility class used to parse XML files
Definition: xml_node.hpp:48