diff --git a/electron/types.ts b/electron/types.ts
index 02810f4d43..57671c3188 100644
--- a/electron/types.ts
+++ b/electron/types.ts
@@ -20,6 +20,7 @@ export interface AppSettings {
customWinePaths: string[]
darkTrayIcon: boolean
defaultInstallPath: string
+ disableController: boolean
discordRPC: boolean
egsLinkedPath: string
exitToTray: boolean
diff --git a/public/locales/bg/translation.json b/public/locales/bg/translation.json
index 07258e058c..ee08f0768e 100644
--- a/public/locales/bg/translation.json
+++ b/public/locales/bg/translation.json
@@ -238,6 +238,7 @@
"darktray": "Използване на тъмна иконка за системната област за уведомления",
"default-install-path": "Папка по подразбиране за инсталации",
"defaultWinePrefix": "Задаване на папка за нови префикси на Wine",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Включване на актуализирането на присъствието в Дискорд",
"egs-sync": "Синхронизиране с вече инсталиран Epic Games",
"enableFSRHack": "Включване на хака FSR (версията на Wine трябва да го поддържа)",
diff --git a/public/locales/ca/translation.json b/public/locales/ca/translation.json
index d404201d52..62df064696 100644
--- a/public/locales/ca/translation.json
+++ b/public/locales/ca/translation.json
@@ -238,6 +238,7 @@
"darktray": "Emprar la icona fosca al Tray",
"default-install-path": "Ruta d'instal·lació predefinida",
"defaultWinePrefix": "Directori de prefixos Wine nous",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Activa la Discord Rich Presence",
"egs-sync": "Sincronitza amb l'Epic Games instal·lat",
"enableFSRHack": "Activa el FSR Hack (cal que la versió del Wine en sigui compatible)",
diff --git a/public/locales/cs/translation.json b/public/locales/cs/translation.json
index a825e463e7..1d5214f425 100644
--- a/public/locales/cs/translation.json
+++ b/public/locales/cs/translation.json
@@ -238,6 +238,7 @@
"darktray": "Použít tmavou ikonu v systémové oblasti",
"default-install-path": "Výchozí cesta pro instalaci",
"defaultWinePrefix": "Set Folder for new Wine Prefixes",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Povolit Discord Rich Presence",
"egs-sync": "Synchronizovat s instalovaným Epic Games Store",
"enableFSRHack": "Povolte FSR Hack (verze Wine jej musí podporovat)",
diff --git a/public/locales/de/translation.json b/public/locales/de/translation.json
index f29d2447ab..4928556b62 100644
--- a/public/locales/de/translation.json
+++ b/public/locales/de/translation.json
@@ -238,6 +238,7 @@
"darktray": "Dunkles Taskleisten-Icon benutzen",
"default-install-path": "Standard-Installationspfad",
"defaultWinePrefix": "Ordner für neue Wine Präfixe festlegen",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Discord Rich Presence aktivieren",
"egs-sync": "Mit installiertem Epic Games synchronisieren",
"enableFSRHack": "FSR Hack aktivieren (Wine-Version muss es unterstützen)",
diff --git a/public/locales/el/translation.json b/public/locales/el/translation.json
index 40d7831f0d..7d85b1b958 100644
--- a/public/locales/el/translation.json
+++ b/public/locales/el/translation.json
@@ -238,6 +238,7 @@
"darktray": "Χρήση σκοτεινού εικονιδίου",
"default-install-path": "Προεπιλεγμένη Διαδρομή Εγκατάστασης",
"defaultWinePrefix": "Καθορισμός Φακέλου για νέα Προθήματα Wine",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Ενεργοποίηση Discord Rich Presence",
"egs-sync": "Συγχρονισμός με εγκατεστημένο Epic Games",
"enableFSRHack": "Ενεργοποίηση FSR Hack (Η έκδοση Wine πρέπει να το υποστηρίζει)",
diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json
index 9115b9c2ae..3ad3a080d7 100644
--- a/public/locales/en/translation.json
+++ b/public/locales/en/translation.json
@@ -238,6 +238,7 @@
"darktray": "Use Dark Tray Icon",
"default-install-path": "Default Installation Path",
"defaultWinePrefix": "Set Folder for new Wine Prefixes",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Enable Discord Rich Presence",
"egs-sync": "Sync with Installed Epic Games",
"enableFSRHack": "Enable FSR Hack (Wine version needs to support it)",
diff --git a/public/locales/es/translation.json b/public/locales/es/translation.json
index c4889d8542..7496d88743 100644
--- a/public/locales/es/translation.json
+++ b/public/locales/es/translation.json
@@ -238,6 +238,7 @@
"darktray": "Utilice el icono de bandeja oscura",
"default-install-path": "Ruta de instalación predeterminada",
"defaultWinePrefix": "Establecer carpeta para nuevos prefijos de Wine",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Activar Discord Rich Presence",
"egs-sync": "Sincronizar con juegos EGS",
"enableFSRHack": "Habilitar el hack FSR (La versión de Wine debe soportarlo)",
diff --git a/public/locales/et/translation.json b/public/locales/et/translation.json
index a3981d0816..d792abb78f 100644
--- a/public/locales/et/translation.json
+++ b/public/locales/et/translation.json
@@ -238,6 +238,7 @@
"darktray": "Kasuta tumedat süsteemiriiuli ikooni",
"default-install-path": "Vaikimisi paigaldustee",
"defaultWinePrefix": "Määrake uute Wine'i prefikside jaoks kaust",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Luba Discord Rich Presence",
"egs-sync": "Sünkroonimine paigaldatud Epic Games'iga",
"enableFSRHack": "Luba FSR häkk (Wine'i versioon peab seda toetama)",
diff --git a/public/locales/fa/translation.json b/public/locales/fa/translation.json
index 67f69abbd4..ae438d2d4b 100644
--- a/public/locales/fa/translation.json
+++ b/public/locales/fa/translation.json
@@ -238,6 +238,7 @@
"darktray": "استفاده از آیکون میزکار تاریک",
"default-install-path": "محل پیشفرض نصب",
"defaultWinePrefix": "تنظیم پوشه برای Wine Prefix جدید",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "فعالسازی Discord Rich Presence",
"egs-sync": "همگامسازی با بازیهای اپیک نصب شده",
"enableFSRHack": "فعالسازی FSR Hack (نسخه Wine باید از آن پشتیبانی کند)",
diff --git a/public/locales/fi/translation.json b/public/locales/fi/translation.json
index 31eeacf174..f2bf104e8a 100644
--- a/public/locales/fi/translation.json
+++ b/public/locales/fi/translation.json
@@ -238,6 +238,7 @@
"darktray": "Käytä tummaa ilmaisinalueen kuvaketta",
"default-install-path": "Oletus asennussijainti",
"defaultWinePrefix": "Aseta kansio uusille Winen Prefixeille",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Ota käyttöön Discord Rich Presence",
"egs-sync": "Synkronoi asennetun Epic Gamesin kanssa",
"enableFSRHack": "Ota käyttöön FSR Hack (Wine version tulee tukea sitä)",
diff --git a/public/locales/fr/translation.json b/public/locales/fr/translation.json
index 38dc71d9fe..f915d809fa 100644
--- a/public/locales/fr/translation.json
+++ b/public/locales/fr/translation.json
@@ -238,6 +238,7 @@
"darktray": "Utiliser Dark Tray Icon",
"default-install-path": "Chemin par défaut de l'installation",
"defaultWinePrefix": "Set Folder for new Wine Prefixes",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Activer Rich Presence dans Discord",
"egs-sync": "Synchroniser avec l'installation d'Epic Games",
"enableFSRHack": "Activer FSR Hack (la version de wine doit le prendre en charge)",
diff --git a/public/locales/gl/translation.json b/public/locales/gl/translation.json
index e420f1b6a4..8356a06341 100644
--- a/public/locales/gl/translation.json
+++ b/public/locales/gl/translation.json
@@ -238,6 +238,7 @@
"darktray": "Usar icona escura na bandexa do sistema",
"default-install-path": "Ruta de instalación predeterminada",
"defaultWinePrefix": "Estabelecer cartafol para os prefixos de Wine",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Activar a presencia enriquecida de Discord",
"egs-sync": "Sincronizar cos xogos instalados de Epic",
"enableFSRHack": "Activar o hack de FSR (A versión de Wine debe soportalo)",
diff --git a/public/locales/hr/translation.json b/public/locales/hr/translation.json
index 2d96e55b0a..a7f376f51c 100644
--- a/public/locales/hr/translation.json
+++ b/public/locales/hr/translation.json
@@ -238,6 +238,7 @@
"darktray": "Use Dark Tray Icon",
"default-install-path": "",
"defaultWinePrefix": "Set Folder for new Wine Prefixes",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Enable Discord Rich Presence",
"egs-sync": "",
"enableFSRHack": "Enable FSR Hack (Wine version needs to support it)",
diff --git a/public/locales/hu/translation.json b/public/locales/hu/translation.json
index 290d212cb4..e9f6e57bc3 100644
--- a/public/locales/hu/translation.json
+++ b/public/locales/hu/translation.json
@@ -238,6 +238,7 @@
"darktray": "Sötét tálcaikon használata",
"default-install-path": "Alapértelmezett telepítési útvonal",
"defaultWinePrefix": "Mappa beállítása új Wine prefixeknek",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Discord Rich Presence engedélyezése",
"egs-sync": "Szinkronizálás a telepített Epic Gamesszel",
"enableFSRHack": "FSR hack engedélyezése (a Wine verziónak támogatnia kell)",
diff --git a/public/locales/id/translation.json b/public/locales/id/translation.json
index f46cd16100..1f6e7e92e9 100644
--- a/public/locales/id/translation.json
+++ b/public/locales/id/translation.json
@@ -238,6 +238,7 @@
"darktray": "Gunakan Ikon Baki Gelap",
"default-install-path": "Lokasi Pemasangan Asali",
"defaultWinePrefix": "Atur Folder untuk Prefiks Wine baru",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Aktifkan Discord Rich Presence",
"egs-sync": "Sinkronkan dengan Epic Games yang Terpasang",
"enableFSRHack": "Aktifkan Peretasan FSR (perlu versi Wine yang mendukung)",
diff --git a/public/locales/it/translation.json b/public/locales/it/translation.json
index 8c209a9ab9..2667635291 100644
--- a/public/locales/it/translation.json
+++ b/public/locales/it/translation.json
@@ -238,6 +238,7 @@
"darktray": "Usa l'icona scura della barra delle applicazioni",
"default-install-path": "Percorso d'installazione predefinito",
"defaultWinePrefix": "Imposta cartella per i nuovi prefissi Wine",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Attiva \"Discord Rich Presence\"",
"egs-sync": "Sincronizza con l'Epic Games già installato",
"enableFSRHack": "Attiva l'FSR Hack (la versione di Wine deve supportarlo)",
diff --git a/public/locales/ja/translation.json b/public/locales/ja/translation.json
index 62f33fe863..ddbdfea74d 100644
--- a/public/locales/ja/translation.json
+++ b/public/locales/ja/translation.json
@@ -238,6 +238,7 @@
"darktray": "ダークトレイアイコンを使用する",
"default-install-path": "デフォルトのインストールパス",
"defaultWinePrefix": "Set Folder for new Wine Prefixes",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Discord Rich Presenceを有効にする",
"egs-sync": "インストールされているEpic Gamesと同期する",
"enableFSRHack": "FSRハックを有効にする(Wineバージョンはそれをサポートする必要があります)",
diff --git a/public/locales/ko/translation.json b/public/locales/ko/translation.json
index 1d720b8f4b..72725aa07c 100644
--- a/public/locales/ko/translation.json
+++ b/public/locales/ko/translation.json
@@ -238,6 +238,7 @@
"darktray": "다크 트레이 아이콘 사용",
"default-install-path": "기본 설치 경로",
"defaultWinePrefix": "새로운 Wine 접두사를 위한 폴더 설정",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Discord Rich Presence 활성화",
"egs-sync": "설치된 Epic Games와 동기화",
"enableFSRHack": "FSR 활성화 (지원하는 Wine 버전을 사용해야 합니다)",
diff --git a/public/locales/ml/translation.json b/public/locales/ml/translation.json
index c19bae209b..fd66c7b0ba 100644
--- a/public/locales/ml/translation.json
+++ b/public/locales/ml/translation.json
@@ -238,6 +238,7 @@
"darktray": "താലത്തില്(ട്രേയില്) ഇരുണ്ട ചിത്രം ഉപയോഗിക്കുക",
"default-install-path": "തനത് സ്ഥാപനയിടം",
"defaultWinePrefix": "Set Folder for new Wine Prefixes",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "ഡിസ്കോര്ഡ് റിച്ച് പ്രെസന്സ് വക്കൂ",
"egs-sync": "സ്ഥാപിച്ച എപിക് ഗെയിംസുമായി ഒന്നിപ്പിക്കുക",
"enableFSRHack": "എഫ്എസ്ആര് ഹാക്ക് വയ്ക്കൂ (Wine version needs to support it)",
diff --git a/public/locales/nl/translation.json b/public/locales/nl/translation.json
index dc5b08e3d2..8a3caa7f35 100644
--- a/public/locales/nl/translation.json
+++ b/public/locales/nl/translation.json
@@ -238,6 +238,7 @@
"darktray": "Gebruik donker tray icoon",
"default-install-path": "Standaard installatie pad",
"defaultWinePrefix": "Set Folder for new Wine Prefixes",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "\"Discord Rich Presence\" inschakelen",
"egs-sync": "Synchronisatie met geïnstalleerde Epic Games",
"enableFSRHack": "FSR Hack inschakelen (Wine versie moet dit ondersteunen)",
diff --git a/public/locales/pl/translation.json b/public/locales/pl/translation.json
index 9642ac5ddd..c6dcc05eae 100644
--- a/public/locales/pl/translation.json
+++ b/public/locales/pl/translation.json
@@ -238,6 +238,7 @@
"darktray": "Użyj ciemnego motywu ikony",
"default-install-path": "Domyślna ścieżka instalacyjna",
"defaultWinePrefix": "Ustaw Folder dla nowych Prefiksów Wine",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Włącz Discord Rich Presence",
"egs-sync": "Synchronizuj zapisy gier z Epic Games Store",
"enableFSRHack": "Włącz FSR Hack (Wersja Wine musi to wspierać)",
diff --git a/public/locales/pt/translation.json b/public/locales/pt/translation.json
index 38a832ee68..76419bf8da 100644
--- a/public/locales/pt/translation.json
+++ b/public/locales/pt/translation.json
@@ -238,6 +238,7 @@
"darktray": "Usar ícone escuro",
"default-install-path": "Pasta de instalação padrão",
"defaultWinePrefix": "Set Folder for new Wine Prefixes",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Habilitar Discord Rich Presence",
"egs-sync": "Sincronizar com Epic Games Store",
"enableFSRHack": "Habilitar Hack FSR (Wine precisa supportar a feature)",
diff --git a/public/locales/pt_BR/translation.json b/public/locales/pt_BR/translation.json
index bb562ec4d4..3a5b489ac6 100644
--- a/public/locales/pt_BR/translation.json
+++ b/public/locales/pt_BR/translation.json
@@ -238,6 +238,7 @@
"darktray": "Usar o ícone escuro na barra de tarefas",
"default-install-path": "Local de instalação padrão",
"defaultWinePrefix": "Pasta padrão para novos prefixos Wine",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Habilitar o Discord Rich Presence",
"egs-sync": "Sincronizar com a Epic Games Store",
"enableFSRHack": "Habilitar Hack FSR (a versão do Wine precisa suportar o recurso)",
diff --git a/public/locales/ru/translation.json b/public/locales/ru/translation.json
index 009b15dcdf..a5abca69c6 100644
--- a/public/locales/ru/translation.json
+++ b/public/locales/ru/translation.json
@@ -238,6 +238,7 @@
"darktray": "Использовать темную иконку в трее",
"default-install-path": "Стандартный путь установки",
"defaultWinePrefix": "Указать папку для новых префиксов Wine",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Включить Discord Rich Presence",
"egs-sync": "Синхронизировать с установленнными играми EGS",
"enableFSRHack": "Включить FSR Hack (версия Wine должна поддерживать)",
diff --git a/public/locales/sv/translation.json b/public/locales/sv/translation.json
index b890362a78..3a39596cd8 100644
--- a/public/locales/sv/translation.json
+++ b/public/locales/sv/translation.json
@@ -238,6 +238,7 @@
"darktray": "Använd mörk ikon i systemfältet",
"default-install-path": "Standard installationssökväg",
"defaultWinePrefix": "Ange sökväg för nya Wine-prefix",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Aktivera Discord Rich Presence",
"egs-sync": "Synkronisera med installerade Epic spel",
"enableFSRHack": "Aktivera FSR Hack (Wine-versionen måste stödja det)",
diff --git a/public/locales/ta/translation.json b/public/locales/ta/translation.json
index 8bdd063e72..4f0babf66e 100644
--- a/public/locales/ta/translation.json
+++ b/public/locales/ta/translation.json
@@ -238,6 +238,7 @@
"darktray": "கணினி தட்டில் இருண்ட சின்னத்தை பயன்படுத்து",
"default-install-path": "இயல்புநிலை நிறுவல் பாதை",
"defaultWinePrefix": "Set Folder for new Wine Prefixes",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Enable Discord Rich Presence",
"egs-sync": "நிறுவப்பட்ட எபிக் விளையாட்டுகளுடன் ஒத்திசை",
"enableFSRHack": "Enable FSR Hack (Wine version needs to support it)",
diff --git a/public/locales/tr/translation.json b/public/locales/tr/translation.json
index 3e316b95cf..1d1e0b810f 100644
--- a/public/locales/tr/translation.json
+++ b/public/locales/tr/translation.json
@@ -238,6 +238,7 @@
"darktray": "Karanlık Tepsi Simgesi Kullan",
"default-install-path": "Öntanımlı Kurulum Yeri",
"defaultWinePrefix": "Yeni Wine Prefix'leri için Klasörü Ayarla",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Discord Rich Presence'i Etkinleştir",
"egs-sync": "Kurulu Epic Games ile Eşzamanla",
"enableFSRHack": "FSR Hack'i Etkinleştir (Wine sürümünün desteklemesi gerekiyor)",
diff --git a/public/locales/uk/translation.json b/public/locales/uk/translation.json
index 45232a7a46..72c3005668 100644
--- a/public/locales/uk/translation.json
+++ b/public/locales/uk/translation.json
@@ -238,6 +238,7 @@
"darktray": "Використовувати темну піктограму на панелі",
"default-install-path": "Стандартний шлях встановлення",
"defaultWinePrefix": "Обрати теку для нових префіксів Wine",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Ввімкнути Discord Rich Presence",
"egs-sync": "Синхронізуватися із встановленим Epic Games Launcher",
"enableFSRHack": "Ввімкнути FSR Hack (версія Wine має це підтримувати)",
diff --git a/public/locales/vi/translation.json b/public/locales/vi/translation.json
index d02f03722b..00decc15e2 100644
--- a/public/locales/vi/translation.json
+++ b/public/locales/vi/translation.json
@@ -238,6 +238,7 @@
"darktray": "Sử dụng icon tối",
"default-install-path": "Thư mục cài mặc định",
"defaultWinePrefix": "Đặt thư mục cho prefix mới của Wine",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "Bật tính năng Discord Rich Presence",
"egs-sync": "Đồng bộ với Game Epic đã cài",
"enableFSRHack": "Bật tính năng FSR hack (Phiên bản Wine cần hỗ trợ tính năng này)",
diff --git a/public/locales/zh_Hans/translation.json b/public/locales/zh_Hans/translation.json
index a6ad668581..2ceead8214 100644
--- a/public/locales/zh_Hans/translation.json
+++ b/public/locales/zh_Hans/translation.json
@@ -238,6 +238,7 @@
"darktray": "使用暗色托盘图标",
"default-install-path": "默认安装路径",
"defaultWinePrefix": "为新的 WinePrefix设置文件夹",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "启用Discord的Rich Presence(活动状态)",
"egs-sync": "与已安装的 Epic 游戏同步",
"enableFSRHack": "启用 FSR(需要支持的WINE版本)",
diff --git a/public/locales/zh_Hant/translation.json b/public/locales/zh_Hant/translation.json
index ea16f7039f..f7df06d94a 100644
--- a/public/locales/zh_Hant/translation.json
+++ b/public/locales/zh_Hant/translation.json
@@ -238,6 +238,7 @@
"darktray": "使用暗色系統列圖示",
"default-install-path": "預設安裝路徑",
"defaultWinePrefix": "Set Folder for new Wine Prefixes",
+ "disable_controller": "Disable Heroic navigation using controller",
"discordRPC": "啟用Discord的Rich Presence(活動狀態)",
"egs-sync": "與已安裝的Epic Games同步",
"enableFSRHack": "啟用FSR(需要支持的WINE版本)",
diff --git a/src/helpers/gamepad.ts b/src/helpers/gamepad.ts
index df38d4f6c9..c859c0b81c 100644
--- a/src/helpers/gamepad.ts
+++ b/src/helpers/gamepad.ts
@@ -22,6 +22,8 @@ const SCROLL_REPEAT_DELAY = 50
* For more documentation, check here https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/wiki/Gamepad-Navigation
*/
+let controllerIsDisabled = false
+
export const initGamepad = () => {
// store the current controllers
let controllers: number[] = []
@@ -58,6 +60,8 @@ export const initGamepad = () => {
pressed: boolean,
controllerIndex: number
) {
+ if (controllerIsDisabled) return
+
if (!heroicIsFocused) {
// ignore gamepad events if heroic is not the focused app
//
@@ -295,3 +299,11 @@ export const initGamepad = () => {
window.addEventListener('gamepadconnected', connecthandler)
window.addEventListener('gamepaddisconnected', disconnecthandler)
}
+
+export const toggleControllerIsDisabled = (value: boolean | undefined) => {
+ if (value !== undefined) {
+ controllerIsDisabled = value
+ } else {
+ controllerIsDisabled = !controllerIsDisabled
+ }
+}
diff --git a/src/screens/Settings/components/GeneralSettings/index.tsx b/src/screens/Settings/components/GeneralSettings/index.tsx
index a4485e5217..17d283320b 100644
--- a/src/screens/Settings/components/GeneralSettings/index.tsx
+++ b/src/screens/Settings/components/GeneralSettings/index.tsx
@@ -11,6 +11,7 @@ import classNames from 'classnames'
import { IpcRenderer } from 'electron'
import Backspace from '@mui/icons-material/Backspace'
import CreateNewFolder from '@mui/icons-material/CreateNewFolder'
+import { toggleControllerIsDisabled } from 'src/helpers/gamepad'
const { ipcRenderer } = window.require('electron') as {
ipcRenderer: IpcRenderer
@@ -21,6 +22,7 @@ const storage: Storage = window.localStorage
interface Props {
darkTrayIcon: boolean
defaultInstallPath: string
+ disableController: boolean
egsLinkedPath: string
egsPath: string
exitToTray: boolean
@@ -35,6 +37,7 @@ interface Props {
setMaxWorkers: (value: number) => void
startInTray: boolean
toggleDarkTrayIcon: () => void
+ toggleDisableController: () => void
toggleStartInTray: () => void
toggleTray: () => void
toggleMinimizeOnLaunch: () => void
@@ -60,8 +63,10 @@ export default function GeneralSettings({
setMaxWorkers,
darkTrayIcon,
toggleDarkTrayIcon,
+ minimizeOnLaunch,
toggleMinimizeOnLaunch,
- minimizeOnLaunch
+ disableController,
+ toggleDisableController
}: Props) {
const [isSyncing, setIsSyncing] = useState(false)
const [maxCpus, setMaxCpus] = useState(maxWorkers)
@@ -343,6 +348,27 @@ export default function GeneralSettings({
{t('setting.darktray', 'Use Dark Tray Icon')}
+
+
+