2020-10-28 06:39:26 +11:00
|
|
|
|
using UnityEngine;
|
2020-11-20 17:12:40 +11:00
|
|
|
|
using UnityEngine.EventSystems;
|
2020-10-12 20:15:41 +11:00
|
|
|
|
|
2020-11-03 20:59:13 +11:00
|
|
|
|
namespace UnityExplorer.Input
|
2020-10-12 20:15:41 +11:00
|
|
|
|
{
|
2020-10-28 06:39:26 +11:00
|
|
|
|
public interface IHandleInput
|
2020-10-12 20:15:41 +11:00
|
|
|
|
{
|
|
|
|
|
Vector2 MousePosition { get; }
|
|
|
|
|
|
|
|
|
|
bool GetKeyDown(KeyCode key);
|
|
|
|
|
bool GetKey(KeyCode key);
|
|
|
|
|
|
|
|
|
|
bool GetMouseButtonDown(int btn);
|
|
|
|
|
bool GetMouseButton(int btn);
|
2020-11-20 17:12:40 +11:00
|
|
|
|
|
|
|
|
|
BaseInputModule UIModule { get; }
|
|
|
|
|
|
|
|
|
|
PointerEventData InputPointerEvent { get; }
|
|
|
|
|
|
|
|
|
|
void AddUIInputModule();
|
|
|
|
|
void ActivateModule();
|
2020-10-12 20:15:41 +11:00
|
|
|
|
}
|
|
|
|
|
}
|