public SimpleConcreteInputPlayable(StateKey state, Keys key, KeyStateChange callback, EntityType type)
 {
     this.state    = state;
     this.key      = key;
     this.callback = callback;
     this.type     = type;
 }
        public SimpleConcreteInputPlayable(StateKey state , Keys key ,KeyStateChange callback , EntityType type )
        {
            this.state = state;
            this.key = key;
            this.callback = callback;
            this.type = type;

        }
 /// <summary>
 /// Initializes a new instance of the <see cref="SimpleConcreteKeyboardInputPlayable"/> class.
 /// For Combo
 /// </summary>
 /// <param name="state">The state.</param>
 /// <param name="key">The key.</param>
 /// <param name="callback">The callback.</param>
 /// <param name="mask">The mask.</param>
 /// <param name="type">The type.</param>
 public SimpleConcreteKeyboardInputPlayable(StateKey state, Keys[] key, KeyStateChange callback = null, InputMask mask = InputMask.GSYSTEM, EntityType type = Input.EntityType.TOOLS)
 {
     this.state = state;
     this.key   = key;
     if (callback != null)
     {
         this.KeyStateChange += callback;
     }
     this.type = type;
     this.mask = mask;
 }
Exemplo n.º 4
0
 public KeyEvent(KeyStateChange type_, Keyboard.Key key_)
     : base(EventType.KeyEvent)
 {
     StateChange = type_;
     Key = key_;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SimpleConcreteKeyboardInputPlayable"/> class.
 /// For Combo
 /// </summary>
 /// <param name="state">The state.</param>
 /// <param name="key">The key.</param>
 /// <param name="callback">The callback.</param>
 /// <param name="mask">The mask.</param>
 /// <param name="type">The type.</param>
 public SimpleConcreteKeyboardInputPlayable(StateKey state, Keys[] key, KeyStateChange callback = null, InputMask mask = InputMask.GSYSTEM, EntityType type = Input.EntityType.TOOLS)
 {
     this.state = state;
     this.key = key;
     if(callback != null)
         this.KeyStateChange += callback;
     this.type = type;
     this.mask = mask;
 }