예제 #1
0
 protected virtual void Timer()
 {
     if (m_dx != 0 || m_dy != 0)
     {
         KbmPost.Move(m_dx, m_dy);
     }
 }
예제 #2
0
        protected virtual bool Wheel(bool Old, bool New, bool Vertical, bool Direction)
        {
            if (!Old && New)
            {
                KbmPost.Wheel(Vertical, Direction ? 1 : -1);
            }

            return(New);
        }
예제 #3
0
        protected virtual bool Button(bool Old, bool New, Keys Key, bool Extended)
        {
            if (Old != New)
            {
                KbmPost.Key(Key, Extended, New);
            }

            return(New);
        }
예제 #4
0
        protected virtual bool Mouse(bool Old, bool New, KbmPost.MouseButtons Button)
        {
            if (Old != New)
            {
                KbmPost.Button(Button, New);
            }

            return(New);
        }
예제 #5
0
        protected virtual Boolean Wheel(Boolean Old, Boolean New, Boolean Vertical, Boolean Direction)
        {
            if (!Old && New)
            {
                KbmPost.Wheel(Vertical, Direction ? 1 : -1);
            }

            return(New);
        }
예제 #6
0
        protected virtual Boolean Button(Boolean Old, Boolean New, Keys Key, Boolean Extended)
        {
            if (Old != New)
            {
                KbmPost.Key(Key, Extended, New);
            }

            return(New);
        }
예제 #7
0
        protected virtual Boolean Mouse(Boolean Old, Boolean New, KbmPost.MouseButtons Button)
        {
            if (Old != New)
            {
                KbmPost.Button(Button, New);
            }

            return(New);
        }
예제 #8
0
        protected virtual bool Macro(bool Old, bool New, Keys[] Keys)
        {
            if (!Old && New)
            {
                foreach (var Key in Keys)
                {
                    KbmPost.Key(Key, false, true);
                    KbmPost.Key(Key, false, false);
                }
            }

            return(New);
        }
예제 #9
0
        protected virtual Boolean Macro(Boolean Old, Boolean New, Keys[] Keys)
        {
            if (!Old && New)
            {
                foreach (Keys Key in Keys)
                {
                    KbmPost.Key(Key, false, true);
                    KbmPost.Key(Key, false, false);
                }
            }

            return(New);
        }
예제 #10
0
        protected virtual int Repeat(bool Old, int Count, Keys Key, bool Extended)
        {
            if (Old)
            {
                if ((++Count >= Repeat_Delay) && ((Count % Repeat_Rate) == 0))
                {
                    KbmPost.Key(Key, Extended, false);
                    KbmPost.Key(Key, Extended, true);
                }
            }
            else
            {
                Count = 0;
            }

            return(Count);
        }
예제 #11
0
        protected virtual Int32   Repeat(Boolean Old, Int32 Count, Keys Key, Boolean Extended)
        {
            if (Old)
            {
                if ((++Count >= Repeat_Delay) && ((Count % Repeat_Rate) == 0))
                {
                    KbmPost.Key(Key, Extended, false);
                    KbmPost.Key(Key, Extended, true);
                }
            }
            else
            {
                Count = 0;
            }

            return(Count);
        }