Exemple #1
0
    private void ButBindCopy(ButtonBindings from, ButtonBindings to)
    {
        to.Clear();

        foreach (string key in from.Keys)
        {
            to.Add(key, from[key]);
        }
    }
 private void Grid_Tapped(object sender, TappedRoutedEventArgs e)
 {
     if (ButtonBindings != null &&
         !ButtonBindings.IsBusy)
     {
         //TappedCommand();
         ButtonBindings.TappedFuncListener();
     }
 }
Exemple #3
0
 // Use this for initialization
 public InputData()
 {
     Keyboard  = new KeyBindings();
     J1Buttons = new ButtonBindings();
     J1Axis    = new AxisBindings();
     J2Buttons = new ButtonBindings();
     J2Axis    = new AxisBindings();
     J3Buttons = new ButtonBindings();
     J3Axis    = new AxisBindings();
     J4Buttons = new ButtonBindings();
     J4Axis    = new AxisBindings();
 }
Exemple #4
0
    // Use this for initialization
    void Start()
    {
        Keyboard  = new KeyBindings();
        J1Buttons = new ButtonBindings();
        J1Axis    = new AxisBindings();
        J2Buttons = new ButtonBindings();
        J2Axis    = new AxisBindings();
        J3Buttons = new ButtonBindings();
        J3Axis    = new AxisBindings();
        J4Buttons = new ButtonBindings();
        J4Axis    = new AxisBindings();

        LoadData(filename);
    }
Exemple #5
0
        public CPlayer()
        {
            m_cBaseWeapon = new CBaseWeapon(this);
            m_cSecondaryPlayer = null;
            m_dNumLives = 3;
            m_dScore = 0;
            m_dMovementSpeed = 200.0;
            m_dCombineSpeed = 150.0;
            m_cKeyboardBindings = new KeyBindings();
            m_cGamepadBindings = new ButtonBindings();
            m_bPrimaryPlayer = false;

            // Object Factory will take care of the following
            // - playerIndex

            EventManager.Instance.RegisterEvent(EVENT_ID.PLAYER_COMBINE, this);
        }