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(); }
public Poller(IOnHotkeyPressed onHotkeyPressed) { this.onHotkeyPressed = onHotkeyPressed; }