Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Question mouse delta but activated with lmb hold?

Discussion in 'Input System' started by Krajca, Jun 14, 2020.

  1. Krajca


    May 6, 2014
    Hi, as the title says. I want to model pan behavior, and I have setup with keyboard buttons (WSAD and arrow keys) and I want to add mouse pan to it. I can add another 2D composite with mouse delta on it but I don't know how to activate is only when LMB holds. Can I use the same Action for this or I need to make a different one just for a mouse?
  2. Rene-Damm


    Sep 15, 2012
    There's currently no composite equivalent to "Button With One Modifier" that works for other kinds of control types. It's in the works.

    ATM this requires adding a custom composite to get the "Button + Vector2" combination.