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
        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]);
        }
        public void GetKeyBinding_Should_Return_Correct_Binding()
        {
            var layout = new KeyLayout(DummyBindingList);

            VerifyKeyBinding(layout.GetKeyBinding(0), layout.Bindings[0]);
        }
Example #3
0
 public void GetKeyBinding_Should_Return_Correct_Binding()
 {
     var layout = new KeyLayout(DummyBindingList);
     VerifyKeyBinding(layout.GetKeyBinding(0), layout.Bindings[0]);
 }
Example #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]);
        }