fixed little controller issue and wired up stats in top bar

This commit is contained in:
roormonger
2026-03-23 16:43:09 -04:00
parent 9e8f148a10
commit f6ae56c848
5 changed files with 45 additions and 13 deletions

View File

@@ -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