コード例 #1
0
ファイル: GameController.cs プロジェクト: preetum/archive
 private void fireEvent(GameControlEventHandler e)
 {
     if (e != null)
     {
         e();
     }
 }
コード例 #2
0
ファイル: BaseGameForm.cs プロジェクト: JamesPersaud/GOOS
 /// <summary>
 /// Wire up the base events
 /// </summary>
 private void WireUpEvents()
 {
     Init += new GameControlTimedEventHandler(BaseGameForm_Init);
     Update += new GameControlTimedEventHandler(BaseGameForm_Update);
     Render += new GameControlRenderEventHandler(BaseGameForm_Render);
     Click += new GameControlEventHandler(BaseGameForm_Click);
     MouseDown += new GameControlEventHandler(BaseGameForm_MouseDown);
     MouseEnter += new GameControlEventHandler(BaseGameForm_MouseEnter);
     MouseLeave += new GameControlEventHandler(BaseGameForm_MouseLeave);
     MouseUp += new GameControlEventHandler(BaseGameForm_MouseUp);
     ChangeFocus += new GameControlEventHandler(BaseGameForm_ChangeFocus);
 }
コード例 #3
0
ファイル: frmInteropCtrl.cs プロジェクト: ender35/MenuOnRobot
        public frmInteropCtrl(frmLocalCtrl f)
        {
            m_frmLocalCtrl = f;

            InitializeComponent();

            IPAddress temp = _GetLocalIP();
            if (null != temp)
            {
                SENSOR_NET_ADDRESS = new IPEndPoint(temp, 1699); // new IPEndPoint(IPAddress.Parse("192.168.1.5"), 1699);
                LOCAL_ADDRESS = new IPEndPoint(temp, 1799);
                ROBOT_ADDRESS = new IPEndPoint(IPAddress.Parse("192.168.1.7"), 1599);
            }

            GameControl[0,0] = new GameControlEventHandler(GameStatusChange_0_0);
            GameControl[0,1] = new GameControlEventHandler(GameStatusChange_0_1);
            GameControl[0,3] = new GameControlEventHandler(GameStatusChange_0_3);
            GameControl[0,4] = new GameControlEventHandler(GameStatusChange_0_4);
            GameControl[1,0] = new GameControlEventHandler(GameStatusChange_1_0);
            GameControl[1,1] = new GameControlEventHandler(GameStatusChange_1_1);
            GameControl[1,3] = new GameControlEventHandler(GameStatusChange_1_3);
            GameControl[1,4] = new GameControlEventHandler(GameStatusChange_1_4);
            GameControl[3,0] = new GameControlEventHandler(GameStatusChange_3_0);
            GameControl[3,1] = new GameControlEventHandler(GameStatusChange_3_1);
            GameControl[3,3] = new GameControlEventHandler(GameStatusChange_3_3);
            GameControl[3,4] = new GameControlEventHandler(GameStatusChange_3_4);

            CurtainControl[0] = new GestureControlEventHandler(CurtainClose);
            CurtainControl[1] = new GestureControlEventHandler(CurtainOpen);
            CurtainControl[2] = new GestureControlEventHandler(CurtainHold);

            LightControl[0] = new GestureControlEventHandler(LightHold);
            LightControl[1] = new GestureControlEventHandler(LightShift);

            DtcDataRcv += new SensorDataRcvEventHandler(OnDtcDataRcv);
        }
コード例 #4
0
ファイル: Slider.cs プロジェクト: JamesPersaud/GOOS
 /// <summary>
 /// Default constructor
 /// </summary>
 private Slider()
     : base()
 {
     MouseHeld += new GameControlEventHandler(this.Slider_MouseHeld);
     MouseDown += new GameControlEventHandler(this.Slider_MouseHeld);
 }