44 lines
1.1 KiB
C#
44 lines
1.1 KiB
C#
using System.ComponentModel;
|
|
using System.Text.RegularExpressions;
|
|
using Rewired.Platforms;
|
|
using Rewired.Utils;
|
|
using Rewired.Utils.Interfaces;
|
|
using UnityEngine;
|
|
|
|
namespace Rewired
|
|
{
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public sealed class InputManager : InputManager_Base
|
|
{
|
|
protected override void DetectPlatform()
|
|
{
|
|
editorPlatform = EditorPlatform.None;
|
|
platform = Platform.Unknown;
|
|
webplayerPlatform = WebplayerPlatform.None;
|
|
isEditor = false;
|
|
string text = SystemInfo.deviceName ?? string.Empty;
|
|
string text2 = SystemInfo.deviceModel ?? string.Empty;
|
|
platform = Platform.Windows;
|
|
}
|
|
|
|
protected override void CheckRecompile()
|
|
{
|
|
}
|
|
|
|
protected override string GetFocusedEditorWindowTitle()
|
|
{
|
|
return string.Empty;
|
|
}
|
|
|
|
protected override IExternalTools GetExternalTools()
|
|
{
|
|
return new ExternalTools();
|
|
}
|
|
|
|
private bool CheckDeviceName(string searchPattern, string deviceName, string deviceModel)
|
|
{
|
|
return Regex.IsMatch(deviceName, searchPattern, RegexOptions.IgnoreCase) || Regex.IsMatch(deviceModel, searchPattern, RegexOptions.IgnoreCase);
|
|
}
|
|
}
|
|
}
|