Revert "Add Steam Input support for Big Picture Mode"

This reverts commit 8994b9b2d3.
This commit is contained in:
2025-12-30 18:15:14 +13:00
parent 8994b9b2d3
commit f59f4576b9
6 changed files with 142 additions and 601 deletions
-23
View File
@@ -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 ---