|
102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
|
Go to the source code of this file.
Functions | |
| bool | dttr_inputs_hooks_init (const DTTR_Mods_Context *ctx) |
| void | dttr_inputs_hooks_cleanup (const DTTR_Mods_Context *ctx) |
| void * | dttr_inputs_hook_dinput_poll_callback (void *device) |
| SHORT | dttr_inputs_hook_get_async_key_state_callback (int vkey) |
Definition at line 98 of file hook_dinput_poll.c.
References apply_direction_state(), DINPUT_BUTTON_PRESSED, dttr_config, DTTR_GAMEPAD_AXIS_IDX_CAMERA_RZ, DTTR_GAMEPAD_AXIS_IDX_STICK_X, DTTR_GAMEPAD_AXIS_IDX_STICK_Y, DTTR_GAMEPAD_MAPPING_NONE, DTTR_GAMEPAD_SOURCE_COUNT, dttr_inputs_gamepad, DTTR_LOG_ERROR, DTTR_PCDOGS_F_Mem_MallocCRT, DTTR_ResultOK(), dttr_sidecar_result_detail(), dttr_sidecar_runtime_context(), init_poll_state(), is_source_pressed(), NULL, PCDOGS_GAMEPAD_IDX_BTN_0, PCDOGS_GAMEPAD_IDX_BTN_12, PCDOGS_GAMEPAD_IDX_DOWN, PCDOGS_GAMEPAD_IDX_LEFT, PCDOGS_GAMEPAD_IDX_RIGHT, PCDOGS_GAMEPAD_IDX_UP, read_axis(), src, and state.
Referenced by dttr_inputs_hooks_init().
| SHORT dttr_inputs_hook_get_async_key_state_callback | ( | int | vkey | ) |
Definition at line 98 of file hook_getasynckeystate.c.
References GETASYNCKEYSTATE_KEY_PRESSED, NULL, and vk_to_scancode.
Referenced by dttr_inputs_hooks_init().
| void dttr_inputs_hooks_cleanup | ( | const DTTR_Mods_Context * | ctx | ) |
Definition at line 168 of file inputs.c.
References ctx, DTTR_Core_PatchGroupRelease(), and inputs_targets.
Referenced by cleanup_runtime().
| bool dttr_inputs_hooks_init | ( | const DTTR_Mods_Context * | ctx | ) |
Definition at line 76 of file inputs.c.
References ctx, DTTR_ARRAY_COUNT, dttr_inputs_hook_dinput_poll_callback(), dttr_inputs_hook_get_async_key_state_callback(), DTTR_LOG_ERROR, DTTR_PCDOGS_D_Video_PlayMovieLoop_GetAsyncKeyStateThunk, DTTR_PCDOGS_F_Mem_MallocCRT, DTTR_PCDOGS_PATCH_SPEC_AOB_REL32_JMP, DTTR_ResultOK(), dttr_sidecar_install_pcdogs_patch_group(), dttr_sidecar_result_detail(), inputs_targets, and NULL.
Referenced by install_required_sidecar_hooks().