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);
        }
예제 #2
0
 void jumpGesture_keyboardGestureAction(object sender, KeyboardEventData eventData)
 {
     SendGameCommand(eventData.GetKeyboradAction(), eventData.GetKeyboardPersistance());
 }
예제 #3
0
 void legsGesture_gestureAction(object sender, KeyboardEventData eventData)
 {
     gestureDispatchLogger.Debug("The thread executing this code is : " + Thread.CurrentThread.Name);
     SendGameCommand(eventData.GetKeyboradAction(), eventData.GetKeyboardPersistance());
 }
예제 #4
0
 protected void RaiseKeyboardEvent(KeyboardEventData eventData)
 {
     if (keyboardGestureAction != null) keyboardGestureAction(this, eventData);
 }