Ejemplo n.º 1
0
 public void Dechain(MouseBindingCollection bindings)
 {
     // Dechain bindings
     _buttonPressed  -= bindings._buttonPressed;
     _buttonReleased -= bindings._buttonReleased;
     _wheelMoved     -= bindings._wheelMoved;
     _moved          -= bindings._moved;
 }
Ejemplo n.º 2
0
        // GameState collection handling
        internal MouseBindingCollection CreateGameStateBindigs(GameState gs)
        {
            // Create new bindings collection (for that game state)
            MouseBindingCollection collection = new MouseBindingCollection();

            _gameBindings[gs] = collection;

            // Return collection
            return(collection);
        }
Ejemplo n.º 3
0
        // Constructor(s)
        internal Mouse()
        {
            // Create button register
            _isbuttonDown  = new bool[(int)Mouse.Button.ButtonCount];
            _oldButtonDown = new bool[(int)Mouse.Button.ButtonCount];

            // Create keybinding containers
            _bindings     = new MouseBindingCollection();
            _gameBindings = new Dictionary <GameState, MouseBindingCollection>();
        }