mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 17:40:46 -04:00
chat, nicknames, user list.
This commit is contained in:
@@ -35,9 +35,8 @@ export function ControlSystemProvider({ children }) {
|
||||
}, [pipeline.roverId]);
|
||||
|
||||
useEffect(() => {
|
||||
if (controlSettings?.keymap) {
|
||||
dispatch({ type: 'control/set-keymap', payload: controlSettings.keymap });
|
||||
}
|
||||
const mergedKeymap = { ...DEFAULT_KEYMAP, ...(controlSettings?.keymap || {}) };
|
||||
dispatch({ type: 'control/set-keymap', payload: mergedKeymap });
|
||||
if (controlSettings?.macros) {
|
||||
dispatch({ type: 'control/set-macros', payload: controlSettings.macros });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user