31#define DINPUT_POV_CENTERED 0xFFFFFFFF
33#define DINPUT_BUTTON_PRESSED 0x80
38 for (
int i = 0; i < 4; i++) {
75 ? SDL_GAMEPAD_AXIS_LEFT_TRIGGER
76 : SDL_GAMEPAD_AXIS_RIGHT_TRIGGER;
85 const int sdl_axis =
dttr_config.gamepad_axes[axis_idx];
93 const LONG deadzone =
dttr_config.gamepad_axis_deadzone[axis_idx];
95 return (value > -deadzone && value < deadzone) ? 0 : value;
108 "Failed to allocate joystick poll state: %s",
125 bool dir_down =
false;
126 bool dir_left =
false;
127 bool dir_right =
false;
const DTTR_BackendState * state
DTTR_Graphics_COM_DirectDrawSurface7 DWORD flags void NULL
#define DTTR_GAMEPAD_SOURCE_TRIGGER_RIGHT
#define DTTR_GAMEPAD_AXIS_IDX_STICK_Y
#define DTTR_GAMEPAD_SOURCE_COUNT
#define DTTR_GAMEPAD_AXIS_IDX_CAMERA_RZ
#define DTTR_GAMEPAD_TRIGGER_THRESHOLD
#define DTTR_GAMEPAD_MAPPING_NONE
#define DTTR_GAMEPAD_SOURCE_TRIGGER_LEFT
#define PCDOGS_GAMEPAD_IDX_BTN_0
#define PCDOGS_GAMEPAD_IDX_UP
#define PCDOGS_GAMEPAD_IDX_BTN_12
#define DTTR_GAMEPAD_AXIS_IDX_STICK_X
#define PCDOGS_GAMEPAD_IDX_LEFT
#define PCDOGS_GAMEPAD_IDX_RIGHT
#define PCDOGS_GAMEPAD_IDX_DOWN
#define DTTR_LOG_ERROR(...)
DTTR_PCDOGS_API const struct dttr_pcdogs_function_accessor_Mem_MallocCRT *const DTTR_PCDOGS_F_Mem_MallocCRT
Accessor object for Mem_MallocCRT.
bool DTTR_ResultOK(DTTR_Result result)
const DTTR_Core_Context * dttr_sidecar_runtime_context()
static game_data_source source
static const char * dttr_sidecar_result_detail(DTTR_Result result)