Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Simple Combination of keys?

Discussion in 'Input System' started by laurentvictorino, Jul 15, 2020.

  1. laurentvictorino

    laurentvictorino

    Joined:
    Mar 2, 2017
    Posts:
    7
    Hey, I'm late to the Input System party, so I'm discovering it only now. I was just wondering if a simple combination of keys can be considered as input by the system.

    Let's say I want the game camera to rotate when:
    • game controller: the right stick is in action
    • mouse/keyboard: the right mouse button is pressed and mouse is moved
    Binding the right stick to the camera movement was easy, but I don't figure out how to tell the system "right click + mouse movement should trigger movement".

    Thanks for your help.

    EDIT:
    I've found this: https://forum.unity.com/threads/implement-a-mouse-drag-composite.807906/ and apparently the mouse drag is not natively implemented at the moment, and it requires you to create your own composite to do so. I'm not super sure of the stability of this on the long term. I think I'll wait another game before using Input System :S
     
    Last edited: Jul 15, 2020
  2. BihtSift

    BihtSift

    Joined:
    Aug 25, 2017
    Posts:
    13