Forum rules - please read before posting.

AC - Rewired - Steam Deck integration HLP

Hi,

Has anyone been able to map the controls to the Steam Deck without setting it to Keyboard and Controller? I am using Rewired. With my current setup, only the Steam Deck mouse pad works; neither stick nor trackpad moves the cursor—only the touchscreen works. If I manually switch the default controller scheme on the Steam Deck to "touchscreen mouse emulation," then I can play using the right stick or trackpad. I am using the latest AC, latest Rewired, and Unity 2022.3.5f1.

Comments

  • Also using this script

    using UnityEngine;
    
    public class ACInputRewired : MonoBehaviour
    {
        public int playerId = 0;
        private Rewired.Player player;
    
        void Start()
        {
            AC.KickStarter.playerInput.InputGetButtonDownDelegate = CustomGetButtonDown;
            AC.KickStarter.playerInput.InputGetButtonUpDelegate = CustomGetButtonUp;
            AC.KickStarter.playerInput.InputGetButtonDelegate = CustomGetButton;
            AC.KickStarter.playerInput.InputGetAxisDelegate = CustomGetAxis;
            player = Rewired.ReInput.players.GetPlayer(playerId);
        }
    
        private bool CustomGetButtonDown(string buttonName)
        {
            return player.GetButtonDown(buttonName);
        }
    
        private float CustomGetAxis(string AxisName)
        {
            return player.GetAxis(AxisName);
        }
    
        private bool CustomGetButton(string buttonName)
        {
            return player.GetButton(buttonName);
        }
    
        private bool CustomGetButtonUp(string buttonName)
        {
            return player.GetButtonUp(buttonName);
        }
    
    }
    
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.