Search Unity

Bug Controls using inactive control scheme

Discussion in 'Input System' started by AlphaLulz, Sep 23, 2022.

  1. AlphaLulz

    AlphaLulz

    Joined:
    Sep 2, 2019
    Posts:
    51
    Hey, I'm making a 2D top-down game with keyboard/mouse and gamepad support. However, there are sections where I only want the player to be able to use the gamepad. During these sections, I've tried making the control scheme set to gamepad and disabling auto-switch. While it does stay as the gamepad control scheme, the keyboard controls still work for some reason, even though I specified them as exclusive to the keyboard control scheme. Does anyone know how to make it only read the current control scheme when auto-switch is disabled?

    Here is an example of my control setup for movement:
    Screenshot 2022-09-22 233443.png Screenshot 2022-09-22 233420.png

    Here is a screenshot of my Player Input component on my player. As you can see, it is locked to the gamepad control scheme only. Nonetheless, the keyboard input is still working.
    Screenshot 2022-09-22 233741.png