fixed little controller issue and wired up stats in top bar
This commit is contained in:
@@ -10,13 +10,7 @@ interface InputModeContextType {
|
||||
const InputModeContext = createContext<InputModeContextType | undefined>(undefined);
|
||||
|
||||
export const InputModeProvider: React.FC<{ children: React.ReactNode }> = ({ children }) => {
|
||||
const [mode, setModeState] = useState<InputMode>('mouse');
|
||||
|
||||
const setMode = (newMode: InputMode) => {
|
||||
if (newMode !== mode) {
|
||||
setModeState(newMode);
|
||||
}
|
||||
};
|
||||
const [mode, setMode] = useState<InputMode>('mouse');
|
||||
|
||||
useEffect(() => {
|
||||
// Spatial Engine Override
|
||||
|
||||
Reference in New Issue
Block a user