Beispiel #1
0
 private static void CreateControlScheme()
 {
     keyListener.Bind(Commands.Debug, Keys.OemTilde, ActionType.Released);
     keyListener.Bind(Commands.Quit, Keys.Delete, ActionType.Released);
 }
Beispiel #2
0
 /// <summary>
 /// Create the control scheme to listen for the debug key press specified.
 /// </summary>
 /// <param name="key"></param>
 private void BindDebugKey(Keys key)
 {
     scheme.Bind(Commands.Debug, key, ActionType.Released);
 }