summaryrefslogtreecommitdiff
path: root/src/components/GameConfigurationControls.tsx
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2026-09-06 23:12:28 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2026-09-06 23:12:28 -0400
commitd1f8263bf9f22753ad53e1b0105172a3bd0faf5f (patch)
tree5e744fd0d2d61f6ea118d1d53b94a602fed3111b /src/components/GameConfigurationControls.tsx
parent7bc5f685186b1ff03ce0f7c99e7bec411beabaeb (diff)
downloaddecky-lsfg-vk-d1f8263bf9f22753ad53e1b0105172a3bd0faf5f.tar.gz
decky-lsfg-vk-d1f8263bf9f22753ad53e1b0105172a3bd0faf5f.zip
feat: organize game profiles and focus enabled settings
Diffstat (limited to 'src/components/GameConfigurationControls.tsx')
-rw-r--r--src/components/GameConfigurationControls.tsx16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/components/GameConfigurationControls.tsx b/src/components/GameConfigurationControls.tsx
index bdf9985..34b82c5 100644
--- a/src/components/GameConfigurationControls.tsx
+++ b/src/components/GameConfigurationControls.tsx
@@ -5,12 +5,24 @@ import { FpsMultiplierControl } from "./FpsMultiplierControl";
interface Props {
config: ConfigurationData;
onConfigChange: (fieldName: keyof ConfigurationData, value: boolean | number | string | string[]) => Promise<void>;
+ autoFocusFpsMultiplier?: boolean;
+ onFpsMultiplierFocused?: () => void;
}
-export function GameConfigurationControls({ config, onConfigChange }: Props) {
+export function GameConfigurationControls({
+ config,
+ onConfigChange,
+ autoFocusFpsMultiplier,
+ onFpsMultiplierFocused,
+}: Props) {
return (
<>
- <FpsMultiplierControl config={config} onConfigChange={onConfigChange} />
+ <FpsMultiplierControl
+ config={config}
+ onConfigChange={onConfigChange}
+ autoFocus={autoFocusFpsMultiplier}
+ onAutoFocus={onFpsMultiplierFocused}
+ />
<ConfigurationSection config={config} onConfigChange={onConfigChange} />
</>
);