GetKeyBinding() публичный Метод

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.
Результат KeyBinding
Пример #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]);
        }
Пример #2
0
        public void GetKeyBinding_Should_Return_Correct_Binding()
        {
            var layout = new KeyLayout(DummyBindingList);

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