Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 26 additions & 9 deletions overwolf.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3582,9 +3582,9 @@ declare namespace overwolf.streaming {
namespace enums {
const enum CaptureErrorCode {
Success = 0,
FolderCreation = 1,
RansomwareProtection = 2 ,
AlreadyStreaming = 3 ,
FolderCreation = 1,
RansomwareProtection = 2,
AlreadyStreaming = 3,
MissingSetting = 4,
SettingError = 5,
InternalOBSError = 6,
Expand Down Expand Up @@ -4508,7 +4508,7 @@ declare namespace overwolf.os.tray {
path: string,
callback: CallbackFunction<Result>
): void;

function restoreIcon(
callback: CallbackFunction<Result>
): void;
Expand Down Expand Up @@ -6365,12 +6365,19 @@ declare namespace overwolf.settings.hotkeys {
shift?: boolean;
}

interface UnassignHotkeyObject {
interface HotkeyObject {
name: string;
gameId?: number;
}

interface AssignHotkeyObject extends UnassignHotkeyObject {
interface UpdateHotkeyObject extends HotkeyObject {
customModifierKeyCode?: number;
isPassThrough?: boolean;
}

type UnassignHotkeyObject = HotkeyObject;

interface AssignHotkeyObject extends HotkeyObject {
modifiers: HotkeyModifiers;
virtualKey: number;
}
Expand All @@ -6380,21 +6387,31 @@ declare namespace overwolf.settings.hotkeys {
isPassThrough: boolean;
}

/**
* Update a hotkey for the current extension.
*/
function update(
hotkey: UpdateHotkeyObject,
callback: CallbackFunction<Result>
): void;

/**
* Returns the hotkey assigned for the current extension in all the games.
*/
function get(callback: CallbackFunction<GetAssignedHotkeyResult>): void;
function get(
callback: CallbackFunction<GetAssignedHotkeyResult>
): void;

/**
* Set hotkey for current extension
* Assign global hotkey for the current extension, OR, if a gameId is specified, assign/unassign a dedicated hotkey.
*/
function assign(
hotkey: AssignHotkeyObject,
callback: CallbackFunction<Result>
): void;

/**
* unassign hotkey for current extension
* Unassign global hotkey for the current extension, OR, if a gameId is specified, assign/unassign a dedicated hotkey.
*/
function unassign(
hotkey: UnassignHotkeyObject,
Expand Down