mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-23 17:02:36 +08:00
24 lines
683 B
C#
24 lines
683 B
C#
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
|
|
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;
|
|
|
|
public BaseInputModule UIModule => null;
|
|
public PointerEventData InputPointerEvent => null;
|
|
public void ActivateModule() { }
|
|
public void AddUIInputModule() { }
|
|
}
|
|
}
|