Skip to content
Snippets Groups Projects
Verified Commit 86ec28a7 authored by Lars Frost's avatar Lars Frost
Browse files

Add missing figure environment

parent 447e9fac
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,7 @@ However, it is unsuited if you want to allow a multiplayer mode by connecting mu ...@@ -72,7 +72,7 @@ However, it is unsuited if you want to allow a multiplayer mode by connecting mu
In that case you need the to handle InputEvents, that know what device triggered them. In that case you need the to handle InputEvents, that know what device triggered them.
The complex way, used in that case, is to register handlers for events in `UnityEngine.InputSystem.InputSystem`. The complex way, used in that case, is to register handlers for events in `UnityEngine.InputSystem.InputSystem`.
```cs #figure(```cs
// on device connect or disconnect // on device connect or disconnect
void OnDeviceChange(InputDevice device, InputDeviceChange change); void OnDeviceChange(InputDevice device, InputDeviceChange change);
// on input // on input
...@@ -85,7 +85,7 @@ UnityEngine.InputSystem.InputSystem.onEvent += OnInputEvent; ...@@ -85,7 +85,7 @@ UnityEngine.InputSystem.InputSystem.onEvent += OnInputEvent;
// unregister // unregister
UnityEngine.InputSystem.InputSystem.onDeviceChange -= OnDeviceChange; UnityEngine.InputSystem.InputSystem.onDeviceChange -= OnDeviceChange;
UnityEngine.InputSystem.InputSystem.onEvent -= OnInputEvent; UnityEngine.InputSystem.InputSystem.onEvent -= OnInputEvent;
``` ```, caption: [Usage of InputSystem Package])
#figure(image("/images/Unity/actionmaps.png"), caption: [ #figure(image("/images/Unity/actionmaps.png"), caption: [
Example of an action map with an action `Move` of type 2D vector, Example of an action map with an action `Move` of type 2D vector,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment