mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-03 12:02:28 +08:00
22 lines
482 B
C#
22 lines
482 B
C#
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
|
|
namespace UnityExplorer.Core.Input
|
|
{
|
|
public interface IHandleInput
|
|
{
|
|
Vector2 MousePosition { get; }
|
|
Vector2 MouseScrollDelta { get; }
|
|
|
|
bool GetKeyDown(KeyCode key);
|
|
bool GetKey(KeyCode key);
|
|
|
|
bool GetMouseButtonDown(int btn);
|
|
bool GetMouseButton(int btn);
|
|
|
|
BaseInputModule UIModule { get; }
|
|
|
|
void AddUIInputModule();
|
|
void ActivateModule();
|
|
}
|
|
} |