torque Torque Game Engine Documentation
TGE Version 1.5.2

DInputDevice Class Reference

#include <winDInputDevice.h>

Inheritance diagram for DInputDevice:

Inheritance graph
[legend]

Public Member Functions

 DInputDevice (const DIDEVICEINSTANCE *deviceInst)
 ~DInputDevice ()
bool create ()
void destroy ()
bool acquire ()
bool unacquire ()
bool isAcquired ()
bool isPolled ()
U8 getDeviceType ()
U8 getDeviceID ()
const char * getName ()
const char * getProductName ()
const char * getJoystickAxesString ()
bool process ()

Static Public Member Functions

static void init ()
static void resetModifierKeys ()
static bool joystickDetected ()

Static Public Attributes

static LPDIRECTINPUT8 smDInputInterface

Protected Types

enum  Constants {
  QUEUED_BUFFER_SIZE = 128,
  SIZEOF_BUTTON = 1,
  SIZEOF_KEY = 1,
  SIZEOF_AXIS = 4,
  SIZEOF_POV = 4
}

Protected Member Functions

bool enumerateObjects ()
bool processAsync ()
bool processImmediate ()
bool processKeyEvent (InputEvent &event)
void syncKeyboardState ()
DWORD findObjInstance (DWORD offset)
bool buildEvent (DWORD offset, S32 newData, S32 oldData)

Static Protected Member Functions

static BOOL CALLBACK EnumObjectsProc (const DIDEVICEOBJECTINSTANCE *doi, LPVOID pvRef)

Protected Attributes

LPDIRECTINPUTDEVICE8 mDevice
DIDEVICEINSTANCE mDeviceInstance
DIDEVCAPS mDeviceCaps
U8 mDeviceType
U8 mDeviceID
bool mAcquired
bool mNeedSync
DIDEVICEOBJECTINSTANCE * mObjInstance
DIOBJECTDATAFORMAT * mObjFormat
ObjInfo * mObjInfo
U8mObjBuffer1
U8mObjBuffer2
U8mPrevObjBuffer
S32 mPrevPOVPos
U32 mObjBufferSize
U32 mObjCount
U32 mObjEnumCount
U32 mObjBufferOfs

Static Protected Attributes

static U8 smKeyboardCount
static U8 smMouseCount
static U8 smJoystickCount
static U8 smUnknownCount
static U8 smModifierKeys
static bool smKeyStates [256]
static bool smInitialized

Member Enumeration Documentation

enum DInputDevice::Constants [protected]

Enumerator:
QUEUED_BUFFER_SIZE 
SIZEOF_BUTTON 
SIZEOF_KEY 
SIZEOF_AXIS 
SIZEOF_POV 


Constructor & Destructor Documentation

DInputDevice::DInputDevice ( const DIDEVICEINSTANCE *  deviceInst  ) 

DInputDevice::~DInputDevice (  ) 


Member Function Documentation

static BOOL CALLBACK DInputDevice::EnumObjectsProc ( const DIDEVICEOBJECTINSTANCE *  doi,
LPVOID  pvRef 
) [static, protected]

bool DInputDevice::enumerateObjects (  )  [protected]

bool DInputDevice::processAsync (  )  [protected]

bool DInputDevice::processImmediate (  )  [protected]

bool DInputDevice::processKeyEvent ( InputEvent event  )  [protected]

void DInputDevice::syncKeyboardState (  )  [protected]

DWORD DInputDevice::findObjInstance ( DWORD  offset  )  [protected]

bool DInputDevice::buildEvent ( DWORD  offset,
S32  newData,
S32  oldData 
) [protected]

static void DInputDevice::init (  )  [static]

static void DInputDevice::resetModifierKeys (  )  [static]

bool DInputDevice::create (  ) 

void DInputDevice::destroy (  ) 

bool DInputDevice::acquire (  ) 

bool DInputDevice::unacquire (  ) 

bool DInputDevice::isAcquired (  )  [inline]

bool DInputDevice::isPolled (  )  [inline]

U8 DInputDevice::getDeviceType (  )  [inline]

U8 DInputDevice::getDeviceID (  )  [inline]

const char* DInputDevice::getName (  ) 

const char* DInputDevice::getProductName (  ) 

const char* DInputDevice::getJoystickAxesString (  ) 

static bool DInputDevice::joystickDetected (  )  [static]

bool DInputDevice::process (  )  [virtual]

Implements InputDevice.


Field Documentation

LPDIRECTINPUT8 DInputDevice::smDInputInterface [static]

U8 DInputDevice::smKeyboardCount [static, protected]

U8 DInputDevice::smMouseCount [static, protected]

U8 DInputDevice::smJoystickCount [static, protected]

U8 DInputDevice::smUnknownCount [static, protected]

U8 DInputDevice::smModifierKeys [static, protected]

bool DInputDevice::smKeyStates[256] [static, protected]

bool DInputDevice::smInitialized [static, protected]

LPDIRECTINPUTDEVICE8 DInputDevice::mDevice [protected]

DIDEVICEINSTANCE DInputDevice::mDeviceInstance [protected]

DIDEVCAPS DInputDevice::mDeviceCaps [protected]

bool DInputDevice::mAcquired [protected]

bool DInputDevice::mNeedSync [protected]

DIDEVICEOBJECTINSTANCE* DInputDevice::mObjInstance [protected]

DIOBJECTDATAFORMAT* DInputDevice::mObjFormat [protected]

ObjInfo* DInputDevice::mObjInfo [protected]




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen