public static void ListenKeyMouseRight(KeyCallback cb, EKeyAction eAct) { if ((eAct & EKeyAction.keyDown) == EKeyAction.keyDown) { instance.keyMouseRight_Listener_Down += cb; } if ((eAct & EKeyAction.keyPressing) == EKeyAction.keyPressing) { instance.keyMouseRight_Listener_Pressing += cb; } if ((eAct & EKeyAction.keyUp) == EKeyAction.keyUp) { instance.keyMouseRight_Listener_Up += cb; } }
// bumper left public static void ListenBumperLeft(KeyCallback cb, EKeyAction eAct) { if ((eAct & EKeyAction.keyDown) == EKeyAction.keyDown) { instance.bumperLeft_Listener_Down += cb; } if ((eAct & EKeyAction.keyPressing) == EKeyAction.keyPressing) { instance.bumperLeft_Listener_Pressing += cb; } if ((eAct & EKeyAction.keyUp) == EKeyAction.keyUp) { instance.bumperLeft_Listener_Down += cb; } }