Skip to content

Instantly share code, notes, and snippets.

View ellraiser's full-sized avatar
🐝
buzz buzz

ellraiser ellraiser

🐝
buzz buzz
View GitHub Profile
@ellraiser
ellraiser / sc_is_running_steamdeck.gml
Created February 27, 2022 14:37
Check if running on SteamDeck in GMS2
// 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() {