Class SingleKeyBinding
- Namespace
- Goehler.OrbitalCam
- Assembly
- Goehler.OrbitalCam.Runtime.dll
V1 binding: one key plus zero or more strict-match modifiers. Fires only when the held modifier set exactly equals Modifiers.
[Serializable]
public class SingleKeyBinding : KeyBindingSource
- Inheritance
-
objectSingleKeyBinding
- Inherited Members
Properties
Key
The keyboard key this binding fires on.
public KeyCode Key { get; set; }
Property Value
- KeyCode
Modifiers
Required modifier set. The binding fires only when the held modifiers exactly match.
public KeyModifiers Modifiers { get; set; }
Property Value
Methods
GetMultiplier()
Scalar contribution when active. Use for analog inputs; 1.0 for plain keys.
public override float GetMultiplier()
Returns
IsHeld()
True while the binding is active this frame (key down and required modifiers match).
public override bool IsHeld()
Returns
WasPressedThisFrame()
True on the frame the binding first becomes active.
public override bool WasPressedThisFrame()