private void RaiseGestureEvent(int gestureId, int keyAction, int persistance)
        {
            logger.Debug("Raising Event for the keyboard");
            KeyboardEventData data = new KeyboardEventData();

            data.SetGestureID( gestureId);
            data.SetKeyboardAction(keyAction);
            data.SetKeyboardPersistance(persistance);

            this.RaiseKeyboardEvent(data);
        }
 void jumpGesture_keyboardGestureAction(object sender, KeyboardEventData eventData)
 {
     SendGameCommand(eventData.GetKeyboradAction(), eventData.GetKeyboardPersistance());
 }
 void legsGesture_gestureAction(object sender, KeyboardEventData eventData)
 {
     gestureDispatchLogger.Debug("The thread executing this code is : " + Thread.CurrentThread.Name);
     SendGameCommand(eventData.GetKeyboradAction(), eventData.GetKeyboardPersistance());
 }
Example #4
0
 protected void RaiseKeyboardEvent(KeyboardEventData eventData)
 {
     if (keyboardGestureAction != null) keyboardGestureAction(this, eventData);
 }