dtCore::LogicalButton Class Reference

A logical button. More...

#include <logicalinputdevice.h>

Inheritance diagram for dtCore::LogicalButton:

dtCore::Button dtCore::InputDeviceFeature

List of all members.

Public Member Functions

 LogicalButton (LogicalInputDevice *owner, const std::string &description, int buttonSymbol, ButtonMapping *mapping)
 Constructor.
void SetMapping (ButtonMapping *mapping)
 Sets this button's mapping.
ButtonMappingGetMapping ()
 Returns this button's mapping.

Protected Member Functions

virtual ~LogicalButton ()


Detailed Description

A logical button.

Constructor & Destructor Documentation

dtCore::LogicalButton::LogicalButton ( LogicalInputDevice owner,
const std::string &  description,
int  buttonSymbol,
ButtonMapping mapping 
)

Constructor.

Parameters:
owner the owner of this button
description a description of this button
buttonSymbol : A unique number representing this Button
mapping the initial button mapping
owner the owner of this button
description a description of this button
mapping the initial button mapping

virtual dtCore::LogicalButton::~LogicalButton (  )  [inline, protected, virtual]


Member Function Documentation

void dtCore::LogicalButton::SetMapping ( ButtonMapping mapping  ) 

Sets this button's mapping.

Parameters:
mapping the new mapping

ButtonMapping * dtCore::LogicalButton::GetMapping (  ) 

Returns this button's mapping.

Returns:
the current mapping


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