Skip to main content
Up and Coming
October 29, 2015

Disable parts of the gamepad controller

Folks,
I am trying to build a guided tutorial in my game and I want to disable \ enable various buttons and axis of the gamepad controller via C#. I can capture all the I\O but cant seem to temporarily disable it. Any direction or guidance is greatly appreciated.

FYI: Im using the oculus utilities player prefabs.

Thanks
    This topic has been closed for replies.

    2 replies

    Inspiring
    October 29, 2015
    If you want to disable a particular button, simply don't respond to that action.

    You could do that with a boolean flag, for example:

    buttonAEnabled = false;
    ...
    if( IsDown(A) && buttonAEnabled == true ){}
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    Up and Coming
    October 29, 2015
    yeah,
    but Ill need to change the scripts in the Oculus utilities which is fine, but Id thought Id look for a different option first.

    Anyway to disable\enable at the input manager level?