Files
UnityExplorer_Fix/src/Input/NoInput.cs
2020-11-03 20:59:13 +11:00

18 lines
458 B
C#

using UnityEngine;
namespace UnityExplorer.Input
{
// Just a stub for games where no Input module was able to load at all.
public class NoInput : IHandleInput
{
public Vector2 MousePosition => Vector2.zero;
public bool GetKey(KeyCode key) => false;
public bool GetKeyDown(KeyCode key) => false;
public bool GetMouseButton(int btn) => false;
public bool GetMouseButtonDown(int btn) => false;
}
}