dtCore::ButtonToButton Class Reference

Maps a button to a logical button. More...

#include <logicalinputdevice.h>

Inheritance diagram for dtCore::ButtonToButton:

dtCore::ButtonMapping dtCore::ButtonListener

List of all members.

Public Member Functions

 ButtonToButton (Button *sourceButton)
 Constructor.
void SetSourceButton (Button *sourceButton)
 Sets the source button.
ButtonGetSourceButton ()
 Returns the source button.
virtual void SetTargetButton (LogicalButton *targetButton)
 Sets the target button.
virtual LogicalButtonGetTargetButton ()
 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.


Detailed Description

Maps a button to a logical button.

Constructor & Destructor Documentation

dtCore::ButtonToButton::ButtonToButton ( Button sourceButton  ) 

Constructor.

Parameters:
sourceButton the source button

dtCore::ButtonToButton::~ButtonToButton (  )  [protected, virtual]

Destructor.


Member Function Documentation

void dtCore::ButtonToButton::SetSourceButton ( Button sourceButton  ) 

Sets the source button.

Parameters:
sourceButton the new source button

Button * dtCore::ButtonToButton::GetSourceButton (  ) 

Returns the source button.

Returns:
the current source button

void dtCore::ButtonToButton::SetTargetButton ( LogicalButton targetButton  )  [virtual]

Sets the target button.

Parameters:
targetButton the new target button

Implements dtCore::ButtonMapping.

LogicalButton * dtCore::ButtonToButton::GetTargetButton (  )  [virtual]

Gets the target button.

Returns:
the current target button

Implements dtCore::ButtonMapping.

bool dtCore::ButtonToButton::ButtonStateChanged ( const Button button,
bool  oldState,
bool  newState 
) [virtual]

Called when a button's state has changed.

Parameters:
button the origin of the event
oldState the old state of the button
newState the new state of the button

Implements dtCore::ButtonListener.


http://www.delta3d.org
2.0.0 generated 14 Feb 2008