DInputDevice

Engine/source/platformWin32/winDInputDevice.h

More...

Protected Types

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

Public Static Attributes

LPDIRECTINPUT8

Protected Static Attributes

smDeviceCount [NUM_INPUT_DEVICE_TYPES]

Protected Attributes

bool
LPDIRECTINPUTDEVICE8
DIDEVCAPS
DIDEVICEINSTANCE
DWORD

Force Feedback axes offsets into DIOBJECTFORMAT.

LPDIRECTINPUTEFFECT

Holds our DirectInput FF Effect.

bool

Are we an XInput device?

bool
DIOBJECTDATAFORMAT *
DIDEVICEOBJECTINSTANCE *

Protected Static Functions

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

Protected Functions

bool
buildEvent(DWORD offset, S32 newData, S32 oldData)
DWORD
findObjInstance(DWORD offset)
bool

Public Functions

DInputDevice(const DIDEVICEINSTANCE * deviceInst)
bool
bool
const char *
bool
bool
bool
bool

Public Static Functions

Detailed Description

Protected Types

Constants

Enumerator

QUEUED_BUFFER_SIZE = 128
SIZEOF_BUTTON = 1
SIZEOF_KEY = 1
SIZEOF_AXIS = 4
SIZEOF_POV = 4

Public Static Attributes

LPDIRECTINPUT8 smDInputInterface 

Protected Static Attributes

U8 smDeviceCount [NUM_INPUT_DEVICE_TYPES]
bool smInitialized 

Protected Attributes

bool mAcquired 
LPDIRECTINPUTDEVICE8 mDevice 
DIDEVCAPS mDeviceCaps 
U8 mDeviceID 
DIDEVICEINSTANCE mDeviceInstance 
U8 mDeviceType 
DWORD mForceFeedbackAxes [2]

Force Feedback axes offsets into DIOBJECTFORMAT.

LPDIRECTINPUTEFFECT mForceFeedbackEffect 

Holds our DirectInput FF Effect.

bool mIsXInput 

Are we an XInput device?

bool mNeedSync 
DWORD mNumForceFeedbackAxes 

axes (we only support 0, 1, or 2

U8 * mObjBuffer1 
U8 * mObjBuffer2 
U32 mObjBufferOfs 
U32 mObjBufferSize 
U32 mObjCount 
U32 mObjEnumCount 
DIOBJECTDATAFORMAT * mObjFormat 
ObjInfo * mObjInfo 
DIDEVICEOBJECTINSTANCE * mObjInstance 
U8 * mPrevObjBuffer 
S32 mPrevPOVPos 

Protected Static Functions

EnumObjectsProc(const DIDEVICEOBJECTINSTANCE * doi, LPVOID pvRef)

Protected Functions

buildEvent(DWORD offset, S32 newData, S32 oldData)

enumerateObjects()

findObjInstance(DWORD offset)

processAsync()

processImmediate()

Public Functions

DInputDevice(const DIDEVICEINSTANCE * deviceInst)

~DInputDevice()

acquire()

create()

destroy()

getDeviceID()

getDeviceType()

getJoystickAxesString()

getName()

getProductName()

isAcquired()

isPolled()

process()

Reimplemented from: InputDevice

rumble(F32 x, F32 y)

unacquire()

Public Static Functions

init()

joystickDetected()