Search Unity

Feature Request Suggestion: Allow us to subscribe to actions from control scheme

Discussion in 'Input System' started by TheSmallKiwi, Sep 2, 2022.

  1. TheSmallKiwi

    TheSmallKiwi

    Joined:
    Apr 22, 2021
    Posts:
    4
    I know that's not the way control schemes are currently set up, but I'd suggest changing that. I can't tell you how many times it would have made my life 1000x easier if I could have simply subscribed to a control schemes actions. Or said another way: I would like access to Actions based on which control scheme the controls are bound to. Ideally I could simply do something like this:

    Code (CSharp):
    1. playerInput.currentControlScheme.FindAction("Move").performed += Move;
    and now I'm subscribed to only the actions that are triggered by bindings from the currentControlScheme.

    This would have simplified my job and saved me so much time. Maybe there's a way to do this and I haven't read enough documentation yet to figure out how (hard to believe, I've read and re-read more Input System documentation in the past couple weeks than I'd like to admit).