Пример #1
0
        private void PollMouseButton(int dx, int dy, uint sleep, Keys key)
        {
            short gaks = GetAsyncKeyState(key);

            if ((gaks & 0b10000000_00000000) > 0) //if the key is set (non-zero) i.e. the key is being held down
            {
                MouseHelperClass.LeftClickDown();
                MouseHelperClass.LeftClickUp();

                if (this.PerformRecoilCompensation)
                {
                    MouseHelperClass.MouseMove(dx, dy, sleep);
                }
            }
        }
Пример #2
0
        private void PollFireButton()
        {
            this.shootTimer.Interval = this._shotInterval;
            Keys fireKey = Keys.MButton; //default is middle mouse button

            fireKey = HelperFunctions.GetFireKeyFromString(this._fireButton);
            short gaks = GetAsyncKeyState(fireKey);

            if ((gaks & 0b10000000_00000000) > 0) //if the key is set (non-zero) i.e. the key is being held down
            {
                MouseHelperClass.LeftClickDown();
                MouseHelperClass.LeftClickUp();

                this.firingState = true;
            }
Пример #3
0
        private void PollMButton(int dx, int dy, uint sleep)
        {
            short gaks = GetAsyncKeyState(System.Windows.Forms.Keys.MButton);

            if ((gaks & 0b10000000_00000000) > 0) //if MSB is set (non-zero) i.e. middle button is being held down
            {
                MouseHelperClass.LeftClickDown();
                MouseHelperClass.LeftClickUp();

                if (this.PerformRecoilCompensation)
                {
                    MouseHelperClass.MouseMove(dx, dy, sleep);
                }
            }
        }
Пример #4
0
        private void PollMButton(int dx, int dy, uint sleep)
        {
            short gaks = GetAsyncKeyState(System.Windows.Forms.Keys.LButton);

            if ((gaks & 0b10000000_00000000) > 0) //if MSB is set (non-zero) i.e. left button is being held down
            {
                //Could add rapidfire here -- have to use KEYBD_EVENT
                //MouseHelperClass.LeftClickDown();
                //MouseHelperClass.LeftClickUp();
                if (this.PerformRecoilCompensation)
                {
                    MouseHelperClass.MouseMove(dx, dy, sleep);
                }


                /* else if (this.PerformRecoilCompensation != true)
                 * {
                 *  MouseHelperClass.Rapidfire();
                 * }
                 * //add Single Shot Rapidfire Here (else)
                 */
            }
        }
Пример #5
0
 public void OnRapidfirePressed() //[XButton2]
 {
     MouseHelperClass.Rapidfire();
 }
Пример #6
0
 public void OnFastLootPressed() //[XButton1]
 {
     MouseHelperClass.FastLoot();
 }