Example #1
0
 public void InputEventHandlerUnRegister_GetAxis_MouseX(DInputManagerGetAxis_MouseX eventHandler)
 {
     if (eventHandler == null || EventGetAxis_MouseX == null)
     {
         return;
     }
     EventGetAxis_MouseX -= eventHandler;
 }
 /// <summary>
 /// Input.GetAxis("Mouse X")
 /// </summary>
 /// <param name="eventHandler"></param>
 public void InputEventHandlerRegister_GetAxis_MouseX(DInputManagerGetAxis_MouseX eventHandler)
 {
     if (eventHandler == null)
     {
         return;
     }
     if (EventGetAxis_MouseX == null)
     {
         EventGetAxis_MouseX = new DInputManagerGetAxis_MouseX(eventHandler);
     }
     else
     {
         EventGetAxis_MouseX += eventHandler;
     }
 }