ldk_os_joystick_axis_get
Get the OS joystick axis.
LDK_API float ldk_os_joystick_axis_get(
LDKJoystickState *state,
LDKJoystickAxis key
);
Returns
The resulting value.
ldk_os_joystick_button_down
Test whether the button was pressed during the current input update.
LDK_API bool ldk_os_joystick_button_down(
LDKJoystickState *state,
LDKJoystickButton key
);
Returns
True if the operation succeeds; false otherwise.
ldk_os_joystick_button_is_pressed
Test whether the button is currently held.
LDK_API bool ldk_os_joystick_button_is_pressed(
LDKJoystickState *state,
LDKJoystickButton key
);
Returns
True when the queried condition holds; false otherwise.
ldk_os_joystick_button_up
Test whether the button was released during the current input update.
LDK_API bool ldk_os_joystick_button_up(
LDKJoystickState *state,
LDKJoystickButton key
);
Returns
True if the operation succeeds; false otherwise.
ldk_os_joystick_count
Count the OS joystick.
LDK_API u32 ldk_os_joystick_count(void);
Returns
Number of matching entries.
ldk_os_joystick_is_connected
Check whether the indicated joystick is connected.
LDK_API u32 ldk_os_joystick_is_connected(LDKJoystickID id);
Returns
The resulting numeric value.
ldk_os_joystick_state_get
Get the OS joystick state.
LDK_API void ldk_os_joystick_state_get(
LDKJoystickState *outState,
LDKJoystickID id
);
ldk_os_joystick_vibration_left_get
Get the OS joystick vibration left.
LDK_API float ldk_os_joystick_vibration_left_get(LDKJoystickID id);
Returns
The resulting value.
ldk_os_joystick_vibration_left_set
Set the OS joystick vibration left.
LDK_API void ldk_os_joystick_vibration_left_set(
LDKJoystickID id,
float speed
);
Parameters
LDKJoystickID id
- Identifier of the target object.
float speed
- Speed used by this operation.
ldk_os_joystick_vibration_right_get
Get the OS joystick vibration right.
LDK_API float ldk_os_joystick_vibration_right_get(LDKJoystickID id);
Returns
The resulting value.
ldk_os_joystick_vibration_right_set
Set the OS joystick vibration right.
LDK_API void ldk_os_joystick_vibration_right_set(
LDKJoystickID id,
float speed
);
Parameters
LDKJoystickID id
- Identifier of the target object.
float speed
- Speed used by this operation.