Search Unity

Binding to MouseWheelUp only ?

Discussion in 'Input System' started by treguy, Jul 13, 2019.

  1. treguy

    treguy

    Joined:
    Jul 7, 2019
    Posts:
    1
    Hi,

    Is there a way have an action triggered by mousewheel only if mousewheel is rolled in a given direction ? I tryed clamping the value to [0;1] or [-1;0], it works bu I still have to read the value from the context and ignore the call I get a 0.

    I could write a composite binding that would do that for me, but maybe there is a better (already existing) solution ?

    Thanks you,
    Fabien.