+
+
+ {
+ const newScheme = InputSystem.allInputs.get(value)
+ if (newScheme == selectedScheme) return
+
+ setSelectedScheme(undefined)
+ InputSystem.selectedScheme = newScheme
}}
/>
- ))}
- >
- ) : (
-
- )}
-
- {
- setChosenKey(selectedInput ? e.key : "")
- setModifierState({
- ctrl: e.ctrlKey,
- alt: e.altKey,
- shift: e.shiftKey,
- meta: e.metaKey,
- })
- }}
- >
-
- {Object.values(InputSystem.globalInputs).map(c => (
-
{
- setSelectedInput(c.name)
+ {selectedScheme ? (
+ <>
+ {
+ setUseGamepad(val)
+ if (selectedScheme) selectedScheme.usesGamepad = val
+ }}
+ />
+
+ {/* */}
+
+ scheme.schemeName
+ )}
+ onSelect={value => {
+ setChosenResetScheme(value)
+ }}
+ />
+
+ */}
+ >
+ ) : (
+
+ )}
+
+
+ {
+ setChosenKey(selectedInput ? e.code : "")
+ setModifierState({
+ ctrl: e.ctrlKey,
+ alt: e.altKey,
+ shift: e.shiftKey,
+ meta: e.metaKey,
+ })
}}
- />
- ))}
-
-
+ >
+ {selectedScheme ? (
+ <>
+