From 01ec0db6a2bcc97f1237d63870a0a2493db54d96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=BCleyman=20Yasir=20KULA?= Date: Thu, 14 May 2020 21:46:33 +0300 Subject: [PATCH] Added OpenUPM instructions --- .github/README.md | 4 +++- Plugins/SimpleInput/Scripts/AxisInputs/Joystick.cs | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/README.md b/.github/README.md index dfc7180..e1313d5 100644 --- a/.github/README.md +++ b/.github/README.md @@ -14,13 +14,15 @@ SimpleInput is an improvement over Unity's standard **Input** system that allows ## INSTALLATION -There are 4 ways to install this plugin: +There are 5 ways to install this plugin: - import [SimpleInput.unitypackage](https://github.com/yasirkula/UnitySimpleInput/releases) via *Assets-Import Package* - clone/[download](https://github.com/yasirkula/UnitySimpleInput/archive/master.zip) this repository and move the *Plugins* folder to your Unity project's *Assets* folder - import it from [Asset Store](https://assetstore.unity.com/packages/tools/input-management/simple-input-system-113033) - *(via Package Manager)* add the following line to *Packages/manifest.json*: - `"com.yasirkula.simpleinput": "https://github.com/yasirkula/UnitySimpleInput.git",` +- *(via [OpenUPM](https://openupm.com))* after installing [openupm-cli](https://github.com/openupm/openupm-cli), run the following command: + - `openupm add com.yasirkula.simpleinput` ## HOW TO diff --git a/Plugins/SimpleInput/Scripts/AxisInputs/Joystick.cs b/Plugins/SimpleInput/Scripts/AxisInputs/Joystick.cs index 832bcf3..44088a4 100644 --- a/Plugins/SimpleInput/Scripts/AxisInputs/Joystick.cs +++ b/Plugins/SimpleInput/Scripts/AxisInputs/Joystick.cs @@ -111,6 +111,8 @@ private void OnEnable() private void OnDisable() { + OnPointerUp( null ); + xAxis.StopTracking(); yAxis.StopTracking();