You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
490 B
24 lines
490 B
using UnityEngine;
|
|
using uPIe;
|
|
|
|
[RequireComponent(typeof(uPIeMenu))]
|
|
public class CustomInputGamepad : MonoBehaviour
|
|
{
|
|
private uPIeMenu menu;
|
|
|
|
private void Awake()
|
|
{
|
|
menu = GetComponent<uPIeMenu>();
|
|
}
|
|
|
|
private void Start()
|
|
{
|
|
menu.ControlWithGamepad = true;
|
|
menu.UseCustomInputSystem = true;
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
menu.CustomInput = new Vector2(Input.GetAxisRaw("Horizontal"), Input.GetAxisRaw("Vertical"));
|
|
}
|
|
}
|