diff options
| author | chai <215380520@qq.com> | 2024-05-19 17:03:57 +0800 |
|---|---|---|
| committer | chai <215380520@qq.com> | 2024-05-19 17:03:57 +0800 |
| commit | cf58771365b5953c6eac548b172aae880d1f0acd (patch) | |
| tree | a49757a4b5c447cbf877584d482367a6bfe33b10 /Thronefall_1_57/Decompile/Rewired/InputManager.cs | |
| parent | eed315deae356ddfb17f28305e7cde6cdfc43313 (diff) | |
* rename
Diffstat (limited to 'Thronefall_1_57/Decompile/Rewired/InputManager.cs')
| -rw-r--r-- | Thronefall_1_57/Decompile/Rewired/InputManager.cs | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/Thronefall_1_57/Decompile/Rewired/InputManager.cs b/Thronefall_1_57/Decompile/Rewired/InputManager.cs deleted file mode 100644 index 1bae3e4..0000000 --- a/Thronefall_1_57/Decompile/Rewired/InputManager.cs +++ /dev/null @@ -1,81 +0,0 @@ -using System.ComponentModel; -using System.Text.RegularExpressions; -using Rewired.Platforms; -using Rewired.Utils; -using Rewired.Utils.Interfaces; -using UnityEngine; -using UnityEngine.SceneManagement; - -namespace Rewired; - -[AddComponentMenu("Rewired/Input Manager")] -[EditorBrowsable(EditorBrowsableState.Never)] -public sealed class InputManager : InputManager_Base -{ - private bool ignoreRecompile; - - protected override void OnInitialized() - { - SubscribeEvents(); - } - - protected override void OnDeinitialized() - { - UnsubscribeEvents(); - } - - protected override void DetectPlatform() - { - scriptingBackend = ScriptingBackend.Mono; - scriptingAPILevel = ScriptingAPILevel.Net20; - editorPlatform = EditorPlatform.None; - platform = Platform.Unknown; - webplayerPlatform = WebplayerPlatform.None; - isEditor = false; - if (SystemInfo.deviceName == null) - { - _ = string.Empty; - } - if (SystemInfo.deviceModel == null) - { - _ = string.Empty; - } - platform = Platform.Windows; - scriptingBackend = ScriptingBackend.Mono; - scriptingAPILevel = ScriptingAPILevel.NetStandard20; - } - - protected override void CheckRecompile() - { - } - - protected override IExternalTools GetExternalTools() - { - return new ExternalTools(); - } - - private bool CheckDeviceName(string searchPattern, string deviceName, string deviceModel) - { - if (!Regex.IsMatch(deviceName, searchPattern, RegexOptions.IgnoreCase)) - { - return Regex.IsMatch(deviceModel, searchPattern, RegexOptions.IgnoreCase); - } - return true; - } - - private void SubscribeEvents() - { - UnsubscribeEvents(); - SceneManager.sceneLoaded += OnSceneLoaded; - } - - private void UnsubscribeEvents() - { - SceneManager.sceneLoaded -= OnSceneLoaded; - } - - private void OnSceneLoaded(Scene scene, LoadSceneMode mode) - { - OnSceneLoaded(); - } -} |
