102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
DTTR_PCDOGS_T_Input_JoystickState Struct Reference

#include <dttr_pcdogs.h>

Data Fields

DTTR_PCDOGS_T_Math_Vec3I32 pos
DTTR_PCDOGS_T_Math_Vec3I32 rot
int32_t sliders [2]
 Offset 0x18.
uint32_t pov_hat [4]
 Offset 0x20.
uint8_t rgb_buttons [32]

Detailed Description

DirectInput joystick snapshot read by Input_ReadGamepad and Input_GetJoystickAxis* helpers. Values are frame-local input samples.

Definition at line 3877 of file dttr_pcdogs.h.

Field Documentation

◆ pos

DTTR_PCDOGS_T_Math_Vec3I32 DTTR_PCDOGS_T_Input_JoystickState::pos

DIJOYSTATE lX/lY/lZ axes; input paths threshold X/Y for gamepad controls. Offset 0x0.

Definition at line 3878 of file dttr_pcdogs.h.

◆ pov_hat

uint32_t DTTR_PCDOGS_T_Input_JoystickState::pov_hat[4]

Offset 0x20.

Definition at line 3883 of file dttr_pcdogs.h.

◆ rgb_buttons

uint8_t DTTR_PCDOGS_T_Input_JoystickState::rgb_buttons[32]

DIJOYSTATE.rgbButtons prefix read by Input_GetJoystickButtonByte for button lookup. Offset 0x30.

Definition at line 3885 of file dttr_pcdogs.h.

◆ rot

DTTR_PCDOGS_T_Math_Vec3I32 DTTR_PCDOGS_T_Input_JoystickState::rot

DIJOYSTATE lRx/lRy/lRz axes; Rz is thresholded for gamepad controls. Offset 0xC.

Definition at line 3880 of file dttr_pcdogs.h.

◆ sliders

int32_t DTTR_PCDOGS_T_Input_JoystickState::sliders[2]

Offset 0x18.

Definition at line 3882 of file dttr_pcdogs.h.


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