Skip to content

Useful GML Scripts 3.1.1

Choose a tag to compare

@mstop4 mstop4 released this 07 Aug 21:01
· 30 commits to main since this release

Library Changes

  • Multiple keys/buttons can now be bound to a single control

  • Left stick and D-pad are no longer automatically bound to directional controls. They now need to be manually assigned to directional controls

  • CONTROLS enum moved to its own config file

  • set_control_map renamed to set_binding

  • get_control_map renamed to get_bindings

  • ControlManagerPlayers can now be bound to different gamepad slots.

  • Added additional vk_* keycodes (as macros) for keys that don't have them already

  • Added new function group: System

    • Added get_os_type_string, get_os_version_string, get_os_browser_string
    • Added get_steam_deck_info, which detects if the game is running on a Steam Deck and which gamepad slot the controls are mapped to
      • The Control Manager can call get_steam_deck_info and store its results locally

Demo Changes

  • The current gamepad slot used in the Control Manager demo can now be changed
    • If the demo detects that it is running on a Steam Deck, then it will default to the gamepad slot that is mapped to the Deck's controls