miepzerino
2025-03-29 ad79d9ca49274cc660fc2030a071b24314f0f210
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;
    }
}