This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // method for detecting if we're running on steamdeck in GMS2 | |
| // super flakey as maybe things will change but works good enough for now! | |
| /* | |
| * @method - sc_is_running_steamdeck() | |
| * @desc - checks if GMS2 is running on a steamdeck by checking some vendor info | |
| * | |
| * @return {struct} - returns a struct with two keys, "is_steamdeck" (bool) and "gamepad_index" (int) | |
| */ | |
| function sc_is_running_steamdeck() { |