Skip to content

Commit 5129929

Browse files
authored
Update README.md
1 parent 0b9b189 commit 5129929

File tree

1 file changed

+40
-2
lines changed

1 file changed

+40
-2
lines changed

README.md

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,40 @@
1-
# UnityModularInputSystem
2-
A custom input system that uses the simplicity of old Unity Input System and new contents of new Unity Input System.
1+
# Custom Input System
2+
3+
A custom input system that uses both the new and old Unity input systems.
4+
5+
## Table of Contents
6+
7+
- Installation
8+
- Usage
9+
- Contributing
10+
- License
11+
12+
## Installation
13+
14+
To install this package, follow these steps:
15+
16+
1. Open Unity and go to **Window > Package Manager**.
17+
2. Click the **+** button and select **Add package from git url** and paste ```https://github.com/AnderSystems/UnityModularInputSystem.git```.
18+
3. Configure the inputs on **Project Settings > Input System**
19+
20+
## Usage
21+
22+
After installing the package, you can use the custom input system in your project. Here are some examples:
23+
24+
```csharp
25+
using UnityEngine;
26+
using UnityEngine.InputSystem;
27+
28+
public class Example : MonoBehaviour
29+
{
30+
void Update()
31+
{
32+
if (InputSystem.GetButtonDown("Jump"))
33+
{
34+
Debug.Log("Jump button pressed");
35+
}
36+
37+
Vector2 move = InputSystem.GetAxis("Move");
38+
Debug.Log("Move axis: " + move);
39+
}
40+
}

0 commit comments

Comments
 (0)