public override void Load() { base.Load(); mPlayerInputMap = mContentLoader.Load<InputMap>("config\\DefaultInputMap"); OnAssignInputMap(); }
public HumanView(PlayerInfo playerInfo, CharacterInfo selectedCharacter, ContentManager contentLoader) : base(playerInfo, selectedCharacter) { mContentLoader = contentLoader; mPlayerInputMap = null; DrawSegment = null; }
static InputMap() { Empty = new InputMap(); Empty.BinaryMap = new Dictionary <BinaryControlActions, List <BinaryControls> >(); Empty.HalfIntervalMap = new Dictionary <HalfIntervalControlActions, HalfIntervalControlSpecification>(); Empty.FullIntervalMap = new Dictionary <FullIntervalControlActions, FullIntervalControlSpecification>(); Empty.FullAxisMap = new Dictionary <FullAxisControlActions, FullAxisControlSpecification>(); }
static InputMap() { Empty = new InputMap(); Empty.BinaryMap = new Dictionary<BinaryControlActions, List<BinaryControls>>(); Empty.HalfIntervalMap = new Dictionary<HalfIntervalControlActions, HalfIntervalControlSpecification>(); Empty.FullIntervalMap = new Dictionary<FullIntervalControlActions, FullIntervalControlSpecification>(); Empty.FullAxisMap = new Dictionary<FullAxisControlActions, FullAxisControlSpecification>(); }
public bool CheckForNewBinaryInput(InputMap inputMap, BinaryControlActions action, PlayerIndex inputIndex) { if (inputMap.BinaryMap.ContainsKey(action)) { foreach (BinaryControls control in inputMap.BinaryMap[action]) { if (IsNewBinaryControlPress(control, inputIndex)) return true; } } return false; }