miepzerino
2025-04-02 2dfa4588b3b5bba2a84dab239d62b1c285478870
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;
    }
}