public MainWindow()
        {
            InitializeComponent();
            left  = new ThumbStickHandler();
            right = new ThumbStickHandler();

            left.OnThumbStickMoved  += Left_OnThumbStickMoved;
            right.OnThumbStickMoved += Right_OnThumbStickMoved;

            cursorTimer          = new DispatcherTimer();
            cursorTimer.Interval = TimeSpan.FromMilliseconds(1);
            cursorTimer.Tick    += CursorTimer_Tick;
            cursorTimer.Start();

            sensitivity.Value          = maxSpeed;
            sensitivityTHreshold.Value = left.SensitivityThreshold;
            deadzone.Value             = left.InputDeadzone;
        }
Beispiel #2
0
 protected StickAction(ControllerMapping parent) : base(parent)
 {
     _handler = new ThumbStickHandler();
     _handler.OnThumbStickMoved += Handler_OnThumbStickMoved;
 }
Beispiel #3
0
 protected StickAction()
 {
     _handler = new ThumbStickHandler();
     _handler.OnThumbStickMoved += Handler_OnThumbStickMoved;
 }