int GetWheelDelta(WidgetInput input) { if (input.WasKeyPressed(Key.MouseWheelDown)) { return(1); } if (input.WasKeyPressed(Key.MouseWheelUp)) { return(-1); } return(0); }
protected override bool WasKeyTriggered(WidgetInput input, Key key) => input.WasKeyPressed(key);