Skip to content

Docs: steamworks.isSteamDeck is a function, not a property #195

@AleCGames

Description

@AleCGames

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions