You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation says steamworks.isSteamDeck is a property that returns a boolean, but it’s actually a function that returns a boolean.
I checked it with type(steamworks.isSteamDeck) and it returns 'function'.
If you use it like a property (if steamworks.isSteamDeck then ... end), it comes back true even on my PC, because that condition just checks that the function exists.
But when I call it as a function (if steamworks.isSteamDeck() then ... end), it correctly returns false on PC (and should return true on a Deck).
Could you please update the docs to reflect that it’s a function, not a property?