6.0.0 alpha 1
Pre-release
Pre-release
New Features
- Input no longer clogs up global namespace
input_tick()
is dead. Long liveinput_controller_object
- Adds
input_verb_get_icon()
as an easier alternative toinput_binding_get_icon()
- If we cannot find a gamepad in the SDL2 database then we now use the original description rather than
"Unknown"
- Adds
input_player_gamepad_type_override_set()
(and getter) to force gamepad appearance - Input now ships with multiple gamepad type macros, such as
INPUT_GAMEPAD_TYPE_XBOX_ONE
andINPUT_GAMEPAD_TYPE_JOYCON_LEFT
- Adds
input_hotswap_params_set()
(and getter) input_multiplayer_params_set()
and getter have been expandedinput_binding_scan_params_set()
and getter have been expanded- The binding scan error code
INPUT_BINDING_SCAN_EVENT.SOURCE_FILTER_EMPTY
has been added - When scanning for a binding with a source filter enabled, hotswapping is disabled
- Adds
input_verb_group_get_verbs()
andinput_verbs_groups_get()
- Adds
input_mouse_enabled_set()
(and getter) - Adds
INPUT_POINTER_TYPE
macro that contains the type of pointer available on the current hardware - Adds
input_led_pattern_get()
Breaking Changes
input_direction()
now takes a default direction as the first argument, returned when a thumbstick is in a neutral positioninput_consume()
has been renamed toinput_verb_consume()
input_cursor_elastic_set()
now defaults to moving the cursor at the same time as moving the elastic pointinput_multiplayer_*()
functions have been renamed toinput_join_*()
to match the name of the source modeINPUT_DEFAULT_PROFILES
has been replaced by__input_config_verbs()
INPUT_VERB_GROUPS
has been replaced by__input_config_verb_groups()
INPUT_HOTSWAP_CALLBACK
has been replaced byinput_hotswap_params_set()
INPUT_MULTIPLAYER_LEAVE_VERB
andINPUT_MULTIPLAYER_ABORT_CALLBACK
have been replaced by extra arguments ininput_join_params_set()
input_icons()
has been removed and replaced withinput_icon_empty()
input_icon_not_a_binding()
input_icons_gamepad()
andinput_icons_keyboard_and_mouse()
INPUT_VIBRATION_SWITCH_OS_STRENGTH
has been renamed toINPUT_VIBRATION_JOYCON_STRENGTH
and will now only affect Joy-Cons (and will work cross-platform too)
Removed Features
- The combo system has been removed
- The deprecated enum value
INPUT_COORD_SPACE.DISPLAY
has now been fully removed (useINPUT_COORD_SPACE.DEVICE
instead)