Revert "Add Steam Input support for Big Picture Mode"
This reverts commit 8994b9b2d3.
This commit is contained in:
@@ -9,14 +9,12 @@ const PerformanceMonitor = require('./performance-monitor');
|
||||
const GPUFallback = require('./gpu-fallback');
|
||||
const GPUConfig = require('./gpu-config');
|
||||
const PluginManager = require('./plugin-manager');
|
||||
const SteamInputManager = require('./steam-input-manager');
|
||||
|
||||
// Initialize performance monitoring and GPU management
|
||||
const perfMonitor = new PerformanceMonitor();
|
||||
const gpuFallback = new GPUFallback();
|
||||
const gpuConfig = new GPUConfig();
|
||||
const pluginManager = new PluginManager();
|
||||
const steamInputManager = new SteamInputManager();
|
||||
|
||||
// Try to enable WebAuthn/platform authenticator features early.
|
||||
// This helps Chromium expose platform authenticators (Touch ID / built-in) where supported.
|
||||
@@ -265,19 +263,6 @@ ipcMain.on('exit-bigpicture', () => {
|
||||
exitBigPictureMode();
|
||||
});
|
||||
|
||||
// Steam Input bridge
|
||||
ipcMain.handle('steam-input-start', (event) => {
|
||||
return steamInputManager.subscribe(event.sender);
|
||||
});
|
||||
|
||||
ipcMain.on('steam-input-stop', (event) => {
|
||||
steamInputManager.unsubscribe(event.sender);
|
||||
});
|
||||
|
||||
ipcMain.handle('steam-input-status', () => {
|
||||
return steamInputManager.getStatus();
|
||||
});
|
||||
|
||||
// IPC handler for sending mouse input events to webviews (used by Big Picture Mode)
|
||||
ipcMain.handle('webview-send-input-event', async (event, { webContentsId, inputEvent }) => {
|
||||
try {
|
||||
@@ -691,14 +676,6 @@ app.on('window-all-closed', () => {
|
||||
if (process.platform !== 'darwin') app.quit();
|
||||
});
|
||||
|
||||
app.on('before-quit', () => {
|
||||
try {
|
||||
steamInputManager?.dispose?.();
|
||||
} catch (err) {
|
||||
console.warn('[SteamInput] dispose failed:', err);
|
||||
}
|
||||
});
|
||||
|
||||
// ipcMain handlers
|
||||
|
||||
// --- Auto-Update IPC handlers ---
|
||||
|
||||
Reference in New Issue
Block a user