Ejemplo n.º 1
0
        protected override void handleRelative(eRelativeAxis axis, int value)
        {
            switch (axis)
            {
            case eRelativeAxis.X:
                position.x = clip(position.x + value, clipRect.left, clipRect.right);
                break;

            case eRelativeAxis.Y:
                position.y = clip(position.y + value, clipRect.top, clipRect.bottom);
                break;

            case eRelativeAxis.VerticalWheel:
                handler.wheel(position.x, position.y, value * WHEEL_DELTA, buttonsState);
                break;

            case eRelativeAxis.HorizontalWheel:
                handler.horizontalWheel(position.x, position.y, value * WHEEL_DELTA, buttonsState);
                break;
            }
        }
Ejemplo n.º 2
0
        protected override void handleRelative(eRelativeAxis axis, int value)
        {
            // Console.WriteLine( "RawMouse.handleRelative: {0} {1}", axis, value );
            switch (axis)
            {
            case eRelativeAxis.X:
                position.x += value;
                break;

            case eRelativeAxis.Y:
                position.y += value;
                break;

            case eRelativeAxis.VerticalWheel:
                handler.wheel(position.x, position.y, value * WHEEL_DELTA, buttonsState);
                break;

            case eRelativeAxis.HorizontalWheel:
                handler.horizontalWheel(position.x, position.y, value * WHEEL_DELTA, buttonsState);
                break;
            }
        }
Ejemplo n.º 3
0
 protected override void handleRelative(eRelativeAxis axis, int value)
 {
     Console.WriteLine("Relative: {0} {1} {2}", axis, value, time);
 }
Ejemplo n.º 4
0
 /// <summary>Handle EV_REL events</summary>
 protected virtual void handleRelative(eRelativeAxis axis, int value)
 {
 }