Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 protected StickAction(ControllerMapping parent) : base(parent)
 {
     _handler = new ThumbStickHandler();
     _handler.OnThumbStickMoved += Handler_OnThumbStickMoved;
 }
Esempio n. 3
0
 protected StickAction()
 {
     _handler = new ThumbStickHandler();
     _handler.OnThumbStickMoved += Handler_OnThumbStickMoved;
 }