# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLMISC::IGameDevice Struct Reference

This abstract a joystick or gamepad. More...

#include <game_device.h>

Inheritance diagram for NLMISC::IGameDevice:

NLMISC::IInputDevice List of all members.

Public Types

enum  TAxis {
  XAxis = 0, YAxis, ZAxis, RXAxis,
  RYAxis, RZAxis, MaxNumAxis
}

Public Methods

virtual const CGameDeviceDescgetDescription () const=0
 Get a general description of this device. More...

Controls presence
virtual uint getNumButtons () const=0
virtual bool hasAxis (TAxis axis) const=0
 Check if the given axe is present on this game device NB : only absolute axis are managed. More...

virtual uint getNumSliders () const=0
virtual uint getNumPOV () const=0
Controls names. Must ensure that controls are present before calling these methods.
virtual const char * getButtonName (uint index) const=0
virtual const char * getAxisName (TAxis axis) const=0
virtual const char * getSliderName (uint index) const=0
virtual const char * getPOVName (uint index) const=0
Controls state. Must ensure that controls are present before calling these methods.
virtual bool getButtonState (uint index) const=0
virtual float getAxisValue (TAxis axis) const=0
virtual float getSliderPos (uint index) const=0
virtual float getPOVAngle (uint index) const=0

Detailed Description

This abstract a joystick or gamepad.

Author:
Nicolas Vizerie , Nevrax France
Date:
2002

Definition at line 72 of file game_device.h.


Member Enumeration Documentation

enum NLMISC::IGameDevice::TAxis
 

Enumeration values:
XAxis 
YAxis 
ZAxis 
RXAxis 
RYAxis 
RZAxis 
MaxNumAxis 

Definition at line 74 of file game_device.h.


Member Function Documentation

virtual const char* NLMISC::IGameDevice::getAxisName TAxis    axis const [pure virtual]
 

virtual float NLMISC::IGameDevice::getAxisValue TAxis    axis const [pure virtual]
 

virtual const char* NLMISC::IGameDevice::getButtonName uint    index const [pure virtual]
 

virtual bool NLMISC::IGameDevice::getButtonState uint    index const [pure virtual]
 

virtual const CGameDeviceDesc& NLMISC::IGameDevice::getDescription   const [pure virtual]
 

Get a general description of this device.

virtual uint NLMISC::IGameDevice::getNumButtons   const [pure virtual]
 

virtual uint NLMISC::IGameDevice::getNumPOV   const [pure virtual]
 

virtual uint NLMISC::IGameDevice::getNumSliders   const [pure virtual]
 

virtual float NLMISC::IGameDevice::getPOVAngle uint    index const [pure virtual]
 

virtual const char* NLMISC::IGameDevice::getPOVName uint    index const [pure virtual]
 

virtual const char* NLMISC::IGameDevice::getSliderName uint    index const [pure virtual]
 

virtual float NLMISC::IGameDevice::getSliderPos uint    index const [pure virtual]
 

virtual bool NLMISC::IGameDevice::hasAxis TAxis    axis const [pure virtual]
 

Check if the given axe is present on this game device NB : only absolute axis are managed.


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