2020-10-28 06:39:26 +11:00
|
|
|
|
using UnityEngine;
|
2020-11-20 17:12:40 +11:00
|
|
|
|
using UnityEngine.EventSystems;
|
2020-10-07 16:20:34 +11:00
|
|
|
|
|
2021-03-18 17:17:29 +11:00
|
|
|
|
namespace UnityExplorer.Core.Input
|
2020-10-07 16:20:34 +11:00
|
|
|
|
{
|
|
|
|
|
// Just a stub for games where no Input module was able to load at all.
|
|
|
|
|
|
2020-10-28 06:39:26 +11:00
|
|
|
|
public class NoInput : IHandleInput
|
2020-10-07 16:20:34 +11:00
|
|
|
|
{
|
2020-10-12 20:15:41 +11:00
|
|
|
|
public Vector2 MousePosition => Vector2.zero;
|
2020-10-07 16:20:34 +11:00
|
|
|
|
|
2020-10-12 20:15:41 +11:00
|
|
|
|
public bool GetKey(KeyCode key) => false;
|
|
|
|
|
public bool GetKeyDown(KeyCode key) => false;
|
2020-10-07 16:20:34 +11:00
|
|
|
|
|
2020-10-12 20:15:41 +11:00
|
|
|
|
public bool GetMouseButton(int btn) => false;
|
|
|
|
|
public bool GetMouseButtonDown(int btn) => false;
|
2020-11-20 17:12:40 +11:00
|
|
|
|
|
|
|
|
|
public BaseInputModule UIModule => null;
|
|
|
|
|
public PointerEventData InputPointerEvent => null;
|
|
|
|
|
public void ActivateModule() { }
|
|
|
|
|
public void AddUIInputModule() { }
|
2020-10-07 16:20:34 +11:00
|
|
|
|
}
|
|
|
|
|
}
|