#include <logicalinputdevice.h>

Public Member Functions | |
| ButtonToButton (Button *sourceButton) | |
| Constructor. | |
| void | SetSourceButton (Button *sourceButton) |
| Sets the source button. | |
| Button * | GetSourceButton () |
| Returns the source button. | |
| virtual void | SetTargetButton (LogicalButton *targetButton) |
| Sets the target button. | |
| virtual LogicalButton * | GetTargetButton () |
| Gets the target button. | |
| virtual bool | ButtonStateChanged (const Button *button, bool oldState, bool newState) |
| Called when a button's state has changed. | |
Protected Member Functions | |
| virtual | ~ButtonToButton () |
| Destructor. | |
| dtCore::ButtonToButton::ButtonToButton | ( | Button * | sourceButton | ) |
Constructor.
| sourceButton | the source button |
| dtCore::ButtonToButton::~ButtonToButton | ( | ) | [protected, virtual] |
Destructor.
| void dtCore::ButtonToButton::SetSourceButton | ( | Button * | sourceButton | ) |
Sets the source button.
| sourceButton | the new source button |
| Button * dtCore::ButtonToButton::GetSourceButton | ( | ) |
Returns the source button.
| void dtCore::ButtonToButton::SetTargetButton | ( | LogicalButton * | targetButton | ) | [virtual] |
Sets the target button.
| targetButton | the new target button |
Implements dtCore::ButtonMapping.
| LogicalButton * dtCore::ButtonToButton::GetTargetButton | ( | ) | [virtual] |
| bool dtCore::ButtonToButton::ButtonStateChanged | ( | const Button * | button, | |
| bool | oldState, | |||
| bool | newState | |||
| ) | [virtual] |
Called when a button's state has changed.
| button | the origin of the event | |
| oldState | the old state of the button | |
| newState | the new state of the button |
Implements dtCore::ButtonListener.