public InControlPlayerInputSource(PlayerConfig config) { this.config = config; TapDetector = new TapInputDetector(); // TODO(james7132): Make this configurable controllerMapping = new PlayerControllerMapping(); }
public InControlInputSource(MatchConfig config) { this.config = config; controllerMapping = new PlayerControllerMapping(); input = new MatchInput(config); ValidMask = 0; for (var i = 0; i < config.PlayerCount; i++) { if (!config.PlayerConfigs[i].IsLocal) { continue; } ValidMask |= (byte)(1 << i); } Debug.Log($"Valid Mask: {ValidMask}"); }