Skip to content

6.0.0 alpha 1

Pre-release
Pre-release
Compare
Choose a tag to compare
@JujuAdams JujuAdams released this 19 Apr 20:36
· 170 commits to dev_6.0 since this release

Documentation

 

New Features

  • Input no longer clogs up global namespace
  • input_tick() is dead. Long live input_controller_object
  • Adds input_verb_get_icon() as an easier alternative to input_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 and INPUT_GAMEPAD_TYPE_JOYCON_LEFT
  • Adds input_hotswap_params_set() (and getter)
  • input_multiplayer_params_set() and getter have been expanded
  • input_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() and input_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 position
  • input_consume() has been renamed to input_verb_consume()
  • input_cursor_elastic_set() now defaults to moving the cursor at the same time as moving the elastic point
  • input_multiplayer_*() functions have been renamed to input_join_*() to match the name of the source mode
  • INPUT_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 by input_hotswap_params_set()
  • INPUT_MULTIPLAYER_LEAVE_VERB and INPUT_MULTIPLAYER_ABORT_CALLBACK have been replaced by extra arguments in input_join_params_set()
  • input_icons() has been removed and replaced with input_icon_empty() input_icon_not_a_binding() input_icons_gamepad() and input_icons_keyboard_and_mouse()
  • INPUT_VIBRATION_SWITCH_OS_STRENGTH has been renamed to INPUT_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 (use INPUT_COORD_SPACE.DEVICE instead)