Skip to content

Commit 037ffe4

Browse files
committed
add comments
1 parent 26c2362 commit 037ffe4

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

current-scripts/Demos/useful-scripts/scripts/control_manager_functions/control_manager_functions.gml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
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.
14
function init_steam_deck_info() {
25
steam_deck_info = get_steam_deck_info();
36
}

current-scripts/Demos/useful-scripts/scripts/system/system.gml

+1
Original file line numberDiff line numberDiff 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}
8687
function get_steam_deck_info() {
8788
var _result = {
181 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)