GetKeyBinding() public method

Gets the key binding for a key.
/// Thrown if is greater than . ///
public GetKeyBinding ( byte keyId ) : KeyBinding
keyId byte The key to query the key binding of.
return KeyBinding
Ejemplo n.º 1
0
        public void SetKeyBinding_Should_Set_Correct_Binding()
        {
            var layout = new KeyLayout(DummyBindingList.ToArray());

            layout.SetKeyBinding(0, 1, 10);

            VerifyKeyBinding(layout.GetKeyBinding(0), layout.Bindings[0]);
        }
Ejemplo n.º 2
0
        public void GetKeyBinding_Should_Return_Correct_Binding()
        {
            var layout = new KeyLayout(DummyBindingList);

            VerifyKeyBinding(layout.GetKeyBinding(0), layout.Bindings[0]);
        }
Ejemplo n.º 3
0
 public void GetKeyBinding_Should_Return_Correct_Binding()
 {
     var layout = new KeyLayout(DummyBindingList);
     VerifyKeyBinding(layout.GetKeyBinding(0), layout.Bindings[0]);
 }
Ejemplo n.º 4
0
        public void SetKeyBinding_Should_Set_Correct_Binding()
        {
            var layout = new KeyLayout(DummyBindingList.ToArray());
            layout.SetKeyBinding(0, 1, 10);

            VerifyKeyBinding(layout.GetKeyBinding(0), layout.Bindings[0]);
        }