miepzerino
2025-04-03 f8d19ab1eb80e22e169cf4f9d7fe3e83f30d77bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using UnityEngine;
 
namespace Flexalon
{
    /// <summary> Simple input provider that uses the mouse for input. </summary>
    public class FlexalonMouseInputProvider : InputProvider
    {
        public bool Active => Input.GetMouseButton(0);
        public Vector3 UIPointer => Input.mousePosition;
        public Ray Ray => Camera.main.ScreenPointToRay(Input.mousePosition);
        public InputMode InputMode => InputMode.Raycast;
        public GameObject ExternalFocusedObject => null;
    }
}