Exemplo n.º 1
0
        public Poller(IOnHotkeyPressed onHotkeyPressed)
        {
            this.onHotkeyPressed = onHotkeyPressed;

            shootTimer          = new System.Timers.Timer();
            shootTimer.Elapsed += (s, e) => PollFireButton();
            shootTimer.Interval = 1; //this will be updated later in realtime in the elapsed event itself

            pullDownMouseTimer           = new System.Timers.Timer();
            pullDownMouseTimer.Elapsed  += (s, e) => PullDownMouse();
            pullDownMouseTimer.AutoReset = false; //will restart manually
            pullDownMouseTimer.Interval  = 1;     //as realtime as possible to monitor and act on whether firebutton is being pressed
            pullDownMouseTimer.Start();
        }
Exemplo n.º 2
0
 public Poller(IOnHotkeyPressed onHotkeyPressed)
 {
     this.onHotkeyPressed = onHotkeyPressed;
 }