From 36732087d523450a8d8c9ee43a5c69fa3fcbccf3 Mon Sep 17 00:00:00 2001 From: Michael Dearman Date: Fri, 26 Apr 2024 19:53:16 +0100 Subject: [PATCH] Thought I could use Gamepad API in BG but guess not --- electron/main/index.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/electron/main/index.ts b/electron/main/index.ts index 2a7db5e..21a1a0a 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -275,16 +275,16 @@ ipcMain.on('chat', (event: any, message: string) => { }); // Toggle focus -// ipcMain.on('focus', () => { -// win?.setIgnoreMouseEvents(false); -// win?.focus(); -// }); - -// // Toggle blur -// ipcMain.on('blur', () => { -// win?.setIgnoreMouseEvents(true); -// win?.blur(); -// }); +ipcMain.on('focus', () => { + win?.setIgnoreMouseEvents(false); + win?.focus(); +}); + +// Toggle blur +ipcMain.on('blur', () => { + win?.setIgnoreMouseEvents(true); + win?.blur(); +}); /* ----------------------------------------- INITIALIZATION