Skip to content

Commit

Permalink
docs: update input alias docs
Browse files Browse the repository at this point in the history
  • Loading branch information
yowpark committed Dec 15, 2023
1 parent 30044d2 commit 37c888c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions docs/docs/docs/engine/unity/Input-configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,8 @@ Go to [`Project Settings`](https://docs.unity3d.com/Manual/comp-ManagerGroup.htm
## When using Input Manager

You need to modify where you use the class [`UnityEngine.Input`](https://docs.unity3d.com/ScriptReference/Input.html) to use `Gamium.Input`.
Look for files that use the input class. And use the [`using`](https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/using-directive) directive at the top of the file to use Gamium.Input instead of the existing Input.
Look for files that use the input class. And insert the code below at the top of the file to use Gamium.Input instead of the existing Input.

:::info
Gamium.Input provides the same API as UnityInput.
The difference is that Gamium.Input also process and simulate input requests sent by the Gamium Client.

If you don't want this, you don't have to alias as Gamium.Input.
:::

### Usage

Expand All @@ -32,6 +26,14 @@ using Input = Gamium.Input;

```

:::info
Gamium.Input provides the same API as UnityInput.
The difference is that Gamium.Input also process and simulate input requests sent by the Gamium Client.

If you don't want this, you don't have to alias as Gamium.Input.
:::


## When using Input Manager

There is no further action to be taken. However, there are not many games tested with Input System yet, so it may be unstable.

0 comments on commit 37c888c

Please sign in to comment.