Class SingleKeyBinding
- Namespace
- Goehler.OrbitalCam
- Assembly
- Goehler.OrbitalCam.Runtime.dll
V1 binding: one key plus zero or more modifiers. Fires when all listed modifiers are held; extras don't block.
[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
All listed modifiers must be held. Additional held modifiers don't block the binding.
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()