102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
state.c File Reference

Go to the source code of this file.

Functions

int32_t Input_CheckButtonState (int32_t state_index, struct Input_State const *state_table, int32_t control_code, int32_t mode_or_threshold)
void Input_InitializeInputSubsystem (HWND hwnd, HINSTANCE h_instance)
void Input_ReadKeyboard (struct Input_State *state)
static void sample_analog_axis (int32_t raw, int16_t *axis)
void Input_ReadGamepad (struct Input_State *state)
BOOL Input_IsKeyPressedAsync (int32_t v_key)
int32_t Input_GetPressedButton ()
BOOL Input_ProcessWindowMessages ()
void Input_ResetState ()
void Input_CalculateMovementVector (struct Math_Vec3I32 *out_move_vector, int32_t player_index, int32_t heading_angle)
void Input_Update ()
void Input_ClearState ()
uint8_t Input_IsKeyPressed (uint8_t scan_code)
void Input_SetKeyDown (uint8_t scan_code)
void Input_SetKeyUp (uint8_t scan_code)

Function Documentation

◆ Input_CalculateMovementVector()

void Input_CalculateMovementVector ( struct Math_Vec3I32 * out_move_vector,
int32_t player_index,
int32_t heading_angle )

Definition at line 436 of file state.c.

◆ Input_CheckButtonState()

int32_t Input_CheckButtonState ( int32_t state_index,
struct Input_State const * state_table,
int32_t control_code,
int32_t mode_or_threshold )

Definition at line 27 of file state.c.

◆ Input_ClearState()

void Input_ClearState ( void )

Definition at line 633 of file state.c.

◆ Input_GetPressedButton()

int32_t Input_GetPressedButton ( void )

Definition at line 317 of file state.c.

◆ Input_InitializeInputSubsystem()

void Input_InitializeInputSubsystem ( HWND hwnd,
HINSTANCE h_instance )

Definition at line 195 of file state.c.

◆ Input_IsKeyPressed()

uint8_t Input_IsKeyPressed ( uint8_t scan_code)

Definition at line 640 of file state.c.

◆ Input_IsKeyPressedAsync()

BOOL Input_IsKeyPressedAsync ( int32_t v_key)

Definition at line 310 of file state.c.

◆ Input_ProcessWindowMessages()

BOOL Input_ProcessWindowMessages ( void )

Definition at line 371 of file state.c.

◆ Input_ReadGamepad()

void Input_ReadGamepad ( struct Input_State * state)

Definition at line 233 of file state.c.

◆ Input_ReadKeyboard()

void Input_ReadKeyboard ( struct Input_State * state)

Definition at line 204 of file state.c.

◆ Input_ResetState()

void Input_ResetState ( void )

Definition at line 422 of file state.c.

◆ Input_SetKeyDown()

void Input_SetKeyDown ( uint8_t scan_code)

Definition at line 669 of file state.c.

◆ Input_SetKeyUp()

void Input_SetKeyUp ( uint8_t scan_code)

Definition at line 676 of file state.c.

◆ Input_Update()

void Input_Update ( void )

Definition at line 540 of file state.c.

◆ sample_analog_axis()

void sample_analog_axis ( int32_t raw,
int16_t * axis )
static

Definition at line 216 of file state.c.