Skip to content

Commit

Permalink
Merge pull request #186 from Thelvaen/is_overlay_enabled
Browse files Browse the repository at this point in the history
implementation for SteamAPI_ISteamUtils_IsOverlayEnabled
  • Loading branch information
Noxime authored Jul 22, 2024
2 parents afb6dcb + e8c528b commit 88fbe16
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ impl<Manager> Utils<Manager> {
}
}

/// Returns whether or not the overlay is enabled in Steam
pub fn is_overlay_enabled(&self) -> bool {
unsafe { sys::SteamAPI_ISteamUtils_IsOverlayEnabled(self.utils) }
}

/// Returns the language the steam client is currently
/// running in.
///
Expand Down

0 comments on commit 88fbe16

Please sign in to comment.