Skip to content

Commit

Permalink
remove xinput check
Browse files Browse the repository at this point in the history
  • Loading branch information
aarron-lee committed Jan 1, 2024
1 parent 8b2292b commit 45b7d4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/HhdComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const HhdComponent: VFC<HhdComponentType> = ({
</PanelSection>
);
}
if (type === "mode" && childName === "xinput" && modes && statePath) {
if (type === "mode" && modes && statePath) {
// specially handle xinput child
const value = get(state, `${statePath}.mode`, defaultValue);

Expand Down
2 changes: 2 additions & 0 deletions src/redux-modules/hhdSlice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ export type SettingsType = {
};

interface HhdState {
perGameProfilesEnabled: boolean;
settingsState?: any;
settings?: any;
loading: { [loadState: string]: "idle" | "pending" | "succeeded" | "failed" };
}

const initialState = {
perGameProfilesEnabled: false,
settingsState: undefined,
settings: undefined,
loading: {
Expand Down

0 comments on commit 45b7d4f

Please sign in to comment.