示例#1
0
 public void Init()
 {
     GfxSystem.ListenKeyPressState(
         Keyboard.Code.Z,
         Keyboard.Code.X,
         Keyboard.Code.Space,
         Keyboard.Code.Period,
         Keyboard.Code.W,
         Keyboard.Code.S,
         Keyboard.Code.A,
         Keyboard.Code.D,
         Keyboard.Code.P);
     GfxSystem.ListenKeyboardEvent(Keyboard.Code.P, this.SwitchHero);
     GfxSystem.ListenKeyboardEvent(Keyboard.Code.Z, this.SwitchDebug);
     GfxSystem.ListenKeyboardEvent(Keyboard.Code.X, this.SwitchObserver);
     GfxSystem.ListenKeyboardEvent(Keyboard.Code.Space, this.InteractObject);
     GfxSystem.ListenKeyboardEvent(Keyboard.Code.Period, this.PrintPosition);
     GfxSystem.ListenTouchEvent(TouchEvent.Cesture, this.TouchHandle);
 }