File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed
Demos/useful-scripts/scripts
control_manager_functions Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 1+ // / @func init_steam_deck_info
2+ // / @desc Calls get_steam_deck_info from system scripts and stores results locally.
3+ // / Note: Doesn't work if called at the very start of the game. Wait a few steps before calling it.
14function init_steam_deck_info () {
25 steam_deck_info = get_steam_deck_info ();
36}
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ function get_os_browser_string(_os_browser) {
8282
8383// / @func get_steam_deck_info()
8484// / @desc Checks if game is running on Steam Deck and which gamepad slot the controls are connected to
85+ // / Note: Doesn't work if called at the very start of the game. Wait a few steps before calling it.
8586// / @returns {boolean}
8687function get_steam_deck_info () {
8788 var _result = {
You can’t perform that action at this time.
0 commit comments