deBaseInputDevice Class Reference

Input Module Input Device. More...

#include <deBaseInputDevice.h>

List of all members.

Public Member Functions

Constructors and Destructors
 deBaseInputDevice ()
 Creates a new input device object.
virtual ~deBaseInputDevice ()
 Cleans up the input device object.
Accessors
virtual const char * GetName ()=0
 Returns a descriptive name for the device suitable for a player to identify and select the correct device later in the game like 'USB Gamepad #1'.
virtual const char * GetPrefix ()=0
 Returns the device prefix string to combine with a button or axis prefix string like 'USBGamePad1'.
virtual int GetAxisCount ()=0
 Returns the number of axes this input device supports.
virtual int GetButtonCount ()=0
 Returns the number of buttons this input device supports.

Detailed Description

Input Module Input Device.

An input device describes one device on the host computer which can be used to provide digital or analog input to the game engine.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Constructor & Destructor Documentation

deBaseInputDevice::deBaseInputDevice (  )

Creates a new input device object.

virtual deBaseInputDevice::~deBaseInputDevice (  ) [virtual]

Cleans up the input device object.


Member Function Documentation

virtual int deBaseInputDevice::GetAxisCount (  ) [pure virtual]

Returns the number of axes this input device supports.

virtual int deBaseInputDevice::GetButtonCount (  ) [pure virtual]

Returns the number of buttons this input device supports.

virtual const char* deBaseInputDevice::GetName (  ) [pure virtual]

Returns a descriptive name for the device suitable for a player to identify and select the correct device later in the game like 'USB Gamepad #1'.

This name has to be uniqe amongst all input devices this input module provides.

virtual const char* deBaseInputDevice::GetPrefix (  ) [pure virtual]

Returns the device prefix string to combine with a button or axis prefix string like 'USBGamePad1'.

The prefix has to be unique among all the devices this input modules issues if possible to allow beeing stored in a config file. The prefix is an normalized string that only is allowed to have only letters, numbers and underscores.


The documentation for this class was generated from the following file: