dtCore::LogicalInputDevice Class Reference

A logical input device. More...

#include <logicalinputdevice.h>

Inheritance diagram for dtCore::LogicalInputDevice:

dtCore::InputDevice dtCore::Base

List of all members.

Public Member Functions

 LogicalInputDevice (const std::string &name="LogicalInputDevice")
 Constructor.
LogicalButtonAddButton (const std::string &description, Button *sourceButton, int buttonSymbol)
 Adds a new logical button to this device.
void RemoveButton (LogicalButton *button)
 Removes a logical button from this device.
LogicalAxisAddAxis (const std::string &description, AxisMapping *mapping=NULL)
 Adds a new logical axis.
LogicalAxisAddAxis (const std::string &description, Axis *sourceAxis)
 Adds a new logical axis.
void RemoveAxis (LogicalAxis *axis)
 Removes a logical axis from this device.

Protected Member Functions

virtual ~LogicalInputDevice ()
 Destructor.


Detailed Description

A logical input device.

Constructor & Destructor Documentation

dtCore::LogicalInputDevice::LogicalInputDevice ( const std::string &  name = "LogicalInputDevice"  ) 

Constructor.

Parameters:
name the instance name

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

Destructor.


Member Function Documentation

LogicalButton * dtCore::LogicalInputDevice::AddButton ( const std::string &  description,
Button sourceButton,
int  buttonSymbol 
)

Adds a new logical button to this device.

Equivalent to AddButton(description, new ButtonToButton(sourceButton)).

Parameters:
description a description of the button
sourceButton the source button
buttonSymbol : a unique number representing the button to be added
Equivalent to AddButton(description, new ButtonToButton(sourceButton)).

Parameters:
description a description of the button
sourceButton the source button

void dtCore::LogicalInputDevice::RemoveButton ( LogicalButton button  ) 

Removes a logical button from this device.

Parameters:
button the button to remove

LogicalAxis * dtCore::LogicalInputDevice::AddAxis ( const std::string &  description,
AxisMapping mapping = NULL 
)

Adds a new logical axis.

Parameters:
description a description of the axis
mapping the initial axis mapping, or NULL for none

LogicalAxis * dtCore::LogicalInputDevice::AddAxis ( const std::string &  description,
Axis sourceAxis 
)

Adds a new logical axis.

Equivalent to AddAxis(description, new AxisToAxis(sourceAxis)).

Parameters:
description a description of the axis
sourceAxis the source axis

void dtCore::LogicalInputDevice::RemoveAxis ( LogicalAxis axis  ) 

Removes a logical axis from this device.

Parameters:
axis the axis to remove


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