Esempio n. 1
0
        private void handleMouseInput(InputState state)
        {
            var xPosition = ToLocalSpace(state.Mouse.NativeState.Position).X;

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

            Bindable.SetProportional(xPosition / UsableWidth);
        }