wavelength 1.0.0
Loading...
Searching...
No Matches
DIJoypad Class Reference

Joystick of DirectInput. More...

#include <DIJoypad.h>

Public Member Functions

 DIJoypad (const DIDEVICEINSTANCE *instance)
 Create the device of a joystick, set its data format, axis ranges, dead zone, and buffer, and acquire it.
 ~DIJoypad ()
 Release the devices.
bool Acquire ()
 Acquire the device, reporting a failure.
void SetAxesProperty (REFGUID property, LPDIPROPHEADER header)
 Set a property of the X, Y, Z, and Z rotation axes.

Public Attributes

DWORD mJoystickId
LPDIRECTINPUTDEVICE mDevice
LPDIRECTINPUTDEVICE2 mDevice2
int mReserved0c
bool mReserved10

Detailed Description

Joystick of DirectInput.

The RTTI includes the class name. The object is 0x14 bytes.

Constructor & Destructor Documentation

◆ DIJoypad()

DIJoypad::DIJoypad ( const DIDEVICEINSTANCE * instance)
explicit

Create the device of a joystick, set its data format, axis ranges, dead zone, and buffer, and acquire it.

Parameters
instanceThe joystick DirectInput enumerated.
Ghidra address:
0x1000be00

◆ ~DIJoypad()

DIJoypad::~DIJoypad ( )

Release the devices.

Ghidra address:
0x1000c0e0

Member Function Documentation

◆ Acquire()

bool DIJoypad::Acquire ( )

Acquire the device, reporting a failure.

Returns
Whether the device is acquired.
Ghidra address:
0x1000c040

◆ SetAxesProperty()

void DIJoypad::SetAxesProperty ( REFGUID property,
LPDIPROPHEADER header )

Set a property of the X, Y, Z, and Z rotation axes.

Parameters
propertyThe property.
headerThe header of the property's value. The routine sets its object.
Ghidra address:
0x1000c080

Member Data Documentation

◆ mJoystickId

DWORD DIJoypad::mJoystickId

The joystick's identifier. The joysticks are sorted by it.

◆ mDevice

LPDIRECTINPUTDEVICE DIJoypad::mDevice

The device.

◆ mDevice2

LPDIRECTINPUTDEVICE2 DIJoypad::mDevice2

The device's second interface.

◆ mReserved0c

int DIJoypad::mReserved0c

◆ mReserved10

bool DIJoypad::mReserved10

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