Ejemplo n.º 1
0
 public Bind(Bind src)
 {
     this.Key = src.Key;
     this.Mouse = src.Mouse;
     this.XboxKey = src.XboxKey;
     this.Type = src.Type;
 }
Ejemplo n.º 2
0
 private void Map(Bind binding, ref byte stick, byte value)
 {
     switch (binding.Type)
     {
         case KeyType.Mouse:
             Map(binding.Mouse, ref stick, value);
             break;
         case KeyType.Keyboard:
             Map(binding.Key, ref stick, value);
             break;
         default:
             throw new NotSupportedException();
     }
 }
Ejemplo n.º 3
0
 private void Map(Bind binding, X360Keys xkey)
 {
     switch (binding.Type)
     {
         case KeyType.Mouse:
             Map(binding.Mouse, xkey);
             break;
         case KeyType.Keyboard:
             Map(binding.Key, xkey);
             break;
         default:
             throw new NotSupportedException();
     }
 }