private void handleMouseInput(InputState state) { var xPosition = ToLocalSpace(state.Mouse.NativeState.Position).X; Bindable.SetProportional(xPosition / box.DrawWidth); }
private void handleMouseInput(InputState state) { var xPosition = ToLocalSpace(state.Mouse.NativeState.Position).X - RangePadding; Bindable.SetProportional(xPosition / UsableWidth); }