Exemple #1
0
        public override void Load()
        {
            base.Load();

            mPlayerInputMap = mContentLoader.Load<InputMap>("config\\DefaultInputMap");
            OnAssignInputMap();
        }
Exemple #2
0
 public HumanView(PlayerInfo playerInfo, CharacterInfo selectedCharacter, ContentManager contentLoader)
     : base(playerInfo, selectedCharacter)
 {
     mContentLoader = contentLoader;
     mPlayerInputMap = null;
     DrawSegment = null;
 }
Exemple #3
0
 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>();
 }
Exemple #4
0
 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>();
 }
Exemple #5
0
 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;
 }