You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
KeyboardControls is a special type of controller that allows you to move through the scene using your keyboard, is based on the Unreal Engine Controls.
4
-
5
3
<DocsDemo>
6
4
<KeyboardControlsDemo />
7
5
</DocsDemo>
8
6
7
+
`<KeyboardControls />` is a simple keyboard controller for the camera. The camera's movements are bound to:
8
+
9
+
* WASD on QWERTY keyboards or equivalent keys on non-QWERTY keyboards
10
+
* Arrow keys
11
+
9
12
::: info
10
-
:memo:KeyboardControls uses `PointerLockControls` under the hood, meaning you can use [all the props from `<PointerLockControls />`](pointer-lock-controls#props) as well as it events.
13
+
`<KeyboardControls />`uses `<PointerLockControls />` under the hood. You can use [`<PointerLockControls />` props and events](pointer-lock-controls#props).
11
14
:::
12
15
13
16
## Usage
14
17
15
-
You can use the ASDW or the arrows keys to move and your mouse to explore your scene.
0 commit comments