An input binding of some sort. More...
#include <SGBinding.hxx>
Public Member Functions | |
| SGBinding () | |
| Default constructor. | |
| SGBinding (const SGPropertyNode *node, SGPropertyNode *root) | |
| Convenience constructor. | |
| virtual | ~SGBinding () |
| Destructor. | |
| const string & | getCommandName () const |
| Get the command name. | |
| SGCommandMgr::command_t | getCommand () const |
| Get the command itself. | |
| const SGPropertyNode * | getArg () |
| Get the argument that will be passed to the command. | |
| void | read (const SGPropertyNode *node, SGPropertyNode *root) |
| Read a binding from a property node. | |
| void | fire () const |
| Fire a binding. | |
| void | fire (double offset, double max) const |
| Fire a binding with a scaled movement (rather than absolute position). | |
| void | fire (double setting) const |
| Fire a binding with a setting (i.e. | |
An input binding of some sort.
This class represents a binding that can be assigned to a keyboard key, a joystick button or axis, or even a panel instrument.
Definition at line 32 of file SGBinding.hxx.
| SGBinding::SGBinding | ( | const SGPropertyNode * | node, | |
| SGPropertyNode * | root | |||
| ) |
Convenience constructor.
| node | The binding will be built from this node. |
Definition at line 26 of file SGBinding.cxx.
| void SGBinding::fire | ( | double | setting | ) | const |
Fire a binding with a setting (i.e.
joystick axis).
A double 'setting' property will be added to the arguments.
| setting | The input setting, usually between -1.0 and 1.0. |
Definition at line 82 of file SGBinding.cxx.
| const SGPropertyNode* SGBinding::getArg | ( | ) | [inline] |
Get the argument that will be passed to the command.
Definition at line 79 of file SGBinding.hxx.
| SGCommandMgr::command_t SGBinding::getCommand | ( | ) | const [inline] |
Get the command itself.
Definition at line 70 of file SGBinding.hxx.
| const string& SGBinding::getCommandName | ( | ) | const [inline] |
Get the command name.
Definition at line 61 of file SGBinding.hxx.
| void SGBinding::read | ( | const SGPropertyNode * | node, | |
| SGPropertyNode * | root | |||
| ) |
Read a binding from a property node.
| node | The property node containing the binding. |
Definition at line 41 of file SGBinding.cxx.
1.6.1