예제 #1
0
        public override bool Init()
        {
            if (!base.Init())
            {
                return(false);
            }
            _Sync        = new Object();
            _RumbleTimer = new CRumbleTimer();
            _Gesture     = new CGesture();

            _ButtonStates = new bool[11];
            _OldPosition  = new Point();

            _WiiMote = new CWiiMoteLib();
            _WiiMote.WiiMoteChanged           += _WmWiiMoteChanged;
            _WiiMote.WiiMoteConnectionChanged += _WiiMote_WiiMoteConnectionChanged;

            return(true);
        }
예제 #2
0
        public bool Init()
        {
            _Sync = new Object();
            _RumbleTimer = new RumbleTimer();
            _Gesture = new CGesture();

            _Active = true;
            _HandlerThread = new Thread(MainLoop);
            _HandlerThread.Priority = ThreadPriority.BelowNormal;

            _KeysPool = new List<KeyEvent>();
            _CurrentKeysPool = new List<KeyEvent>();

            _MousePool = new List<MouseEvent>();
            _CurrentMousePool = new List<MouseEvent>();

            _ButtonStates = new bool[11];
            _OldPosition = new Point();

            _HandlerThread.Start();

            return true;
        }
예제 #3
0
        public bool Init()
        {
            _Sync        = new Object();
            _RumbleTimer = new RumbleTimer();
            _Gesture     = new CGesture();

            _Active                 = true;
            _HandlerThread          = new Thread(MainLoop);
            _HandlerThread.Priority = ThreadPriority.BelowNormal;

            _KeysPool        = new List <KeyEvent>();
            _CurrentKeysPool = new List <KeyEvent>();

            _MousePool        = new List <MouseEvent>();
            _CurrentMousePool = new List <MouseEvent>();

            _ButtonStates = new bool[11];
            _OldPosition  = new Point();

            _HandlerThread.Start();

            return(true);
        }