Пример #1
0
 int GetWheelDelta(WidgetInput input)
 {
     if (input.WasKeyPressed(Key.MouseWheelDown))
     {
         return(1);
     }
     if (input.WasKeyPressed(Key.MouseWheelUp))
     {
         return(-1);
     }
     return(0);
 }
Пример #2
0
 protected override bool WasKeyTriggered(WidgetInput input, Key key) => input.WasKeyPressed(key);