Skip to content

Commit

Permalink
Thought I could use Gamepad API in BG but guess not
Browse files Browse the repository at this point in the history
  • Loading branch information
MickeyUK committed Apr 26, 2024
1 parent 37a899f commit 3673208
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions electron/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3673208

Please sign in to comment.