public static bool AoPadADirect(ControllerConsts key) { if (AppMain.AoAccountGetCurrentId() < (controllerSource?.Count ?? 0)) { return((PAD_ADIRECT(AppMain.AoAccountGetCurrentId()) & key) != 0); } return(false); }
public static int AoPadSomeoneARelease(ControllerConsts key) { for (int i = 0; i < (controllerSource?.Count ?? 0); i++) { if ((PAD_ARELEASE(i) & key) != 0) { return(i); } } return(-1); }
public static int AoPadSomeoneADirect(ControllerConsts key) { for (int i = 0; i < (controllerSource?.Count ?? 0); i++) { if ((PAD_ADIRECT(i) & key) != 0) { return(i); } } return(-1); }
public static int AoPadSomeoneAStand(ControllerConsts key) { for (int i = 0; i < (controllerSource?.Count ?? 0); i++) { if ((PAD_ASTAND(i) & key) != 0) { return(i); } } return(-1); }
public static int AoPadSomeoneRepeat(ControllerConsts key) { for (int i = 0; i < (controllerSource?.Count ?? 0); i++) { if ((PAD_REPEAT(i) & key) != 0) { return(i); } } return(-1); }