102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
hook_getasynckeystate.c File Reference
#include <SDL3/SDL.h>
#include <windows.h>
#include "hooks_private.h"

Go to the source code of this file.

Macros

#define GETASYNCKEYSTATE_KEY_PRESSED   0x8000

Functions

SHORT dttr_inputs_hook_get_async_key_state_callback (int vkey)

Variables

static const SDL_Scancode vk_to_scancode [256]

Macro Definition Documentation

◆ GETASYNCKEYSTATE_KEY_PRESSED

#define GETASYNCKEYSTATE_KEY_PRESSED   0x8000

Function Documentation

◆ dttr_inputs_hook_get_async_key_state_callback()

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().

Variable Documentation

◆ vk_to_scancode

const SDL_Scancode vk_to_scancode[256]
static