Ejemplo n.º 1
0
    private void TestButtonUp()
    {
        Dictionary <ControllerInputManager.eControllerId, BaseController.eButtonId> buttons = ControllerInputManager.Instance.GetButtonUp();

        foreach (ControllerInputManager.eControllerId controllerId in buttons.Keys)
        {
            BaseController           controller = ControllerInputManager.Instance.GetController(controllerId);
            BaseController.eButtonId buttonId   = buttons[controllerId];

            Debug.Log(controller.ControllerId.ToString() + " (" + controller.GetType().Name + "), Button Up: " + controller.GetButtonName(buttonId) + " (" + buttonId.ToString() + ")");
        }
    }
Ejemplo n.º 2
0
 public virtual string GetButtonName(BaseController.eButtonId buttonId)
 {
     // For debug purpose only.
     return(buttonId.ToString());
 }