mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-16 06:08:16 +08:00
24 lines
489 B
C#
24 lines
489 B
C#
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
|
|
namespace UnityExplorer.Input
|
|
{
|
|
public interface IHandleInput
|
|
{
|
|
Vector2 MousePosition { get; }
|
|
|
|
bool GetKeyDown(KeyCode key);
|
|
bool GetKey(KeyCode key);
|
|
|
|
bool GetMouseButtonDown(int btn);
|
|
bool GetMouseButton(int btn);
|
|
|
|
BaseInputModule UIModule { get; }
|
|
|
|
PointerEventData InputPointerEvent { get; }
|
|
|
|
void AddUIInputModule();
|
|
void ActivateModule();
|
|
}
|
|
}
|