Type alias KeyboardControls
KeyboardControls: {
activate: (() => void);
deactivate: (() => void);
enabled: boolean;
update: ((delta) => void);
}
Type declaration
-
activate: (() => void)
-
deactivate: (() => void)
-
enabled: boolean
-
update: ((delta) => void)
-
- (delta): void
-
Returns void
The
KeyboardControls
captures keyboard inputs. Any type of logic can be implemented on top of this.