KeyBinding Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Identifier of a key combination or mouse button for generic input binding.
public value class KeyBinding
[System.Serializable]
public struct KeyBinding
[<System.Serializable>]
type KeyBinding = struct
Public Structure KeyBinding
- Inheritance
-
KeyBinding
- Attributes
Remarks
This encodes either a KeyCode with optional modifiers or a mouse button index.
Properties
BindingType |
Type of input this binding maps to. |
Methods
FromKey(KeyCode) |
Create a binding for a keyboard key. |
FromMouseButton(Int32) |
Create a binding for a mouse button. |
FromMouseButton(KeyBinding+MouseButton) |
Create a binding for a mouse button. |
ToString() | Returns the fully qualified type name of this instance. |
TryGetKeyCode(KeyCode) |
Try to convert the binding to a KeyCode. |
TryGetMouseButton(Int32) |
Try to convert the binding to a mouse button. |
TryGetMouseButton(KeyBinding+MouseButton) |
Try to convert the binding to a mouse button. |
Unbound() |
Create a default empty binding. |