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.
1
4
function init_steam_deck_info () {
2
5
steam_deck_info = get_steam_deck_info ();
3
6
}
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ function get_os_browser_string(_os_browser) {
82
82
83
83
// / @func get_steam_deck_info()
84
84
// / @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.
85
86
// / @returns {boolean}
86
87
function get_steam_deck_info () {
87
88
var _result = {
You can’t perform that action at this time.
0 commit comments