diff --git a/callbacks.d.ts b/callbacks.d.ts index 05246ff4..99503810 100644 --- a/callbacks.d.ts +++ b/callbacks.d.ts @@ -53,4 +53,7 @@ export interface CallbackReturns { order_id: number | bigint authorized: boolean } + [client.callback.SteamCallback.GameOverlayActivated]: { + active: boolean + } } diff --git a/client.d.ts b/client.d.ts index a2501abd..07185323 100644 --- a/client.d.ts +++ b/client.d.ts @@ -56,7 +56,8 @@ export declare namespace callback { P2PSessionRequest = 6, P2PSessionConnectFail = 7, GameLobbyJoinRequested = 8, - MicroTxnAuthorizationResponse = 9 + MicroTxnAuthorizationResponse = 9, + GameOverlayActivated = 10 } export function register(steamCallback: C, handler: (value: import('./callbacks').CallbackReturns[C]) => void): Handle export class Handle { diff --git a/src/api/callback.rs b/src/api/callback.rs index 39780882..1c8a8daa 100644 --- a/src/api/callback.rs +++ b/src/api/callback.rs @@ -34,6 +34,7 @@ pub mod callback { P2PSessionConnectFail, GameLobbyJoinRequested, MicroTxnAuthorizationResponse, + GameOverlayActivated, } #[napi(ts_generic_types = "C extends keyof import('./callbacks').CallbackReturns")] @@ -77,6 +78,9 @@ pub mod callback { SteamCallback::MicroTxnAuthorizationResponse => { register_callback::(threadsafe_handler) } + SteamCallback::GameOverlayActivated => { + register_callback::(threadsafe_handler) + } }; Handle {