Table of Contents

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
object
SingleKeyBinding
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

KeyModifiers

Methods

GetMultiplier()

Scalar contribution when active. Use for analog inputs; 1.0 for plain keys.

public override float GetMultiplier()

Returns

float

IsHeld()

True while the binding is active this frame (key down and required modifiers match).

public override bool IsHeld()

Returns

bool

WasPressedThisFrame()

True on the frame the binding first becomes active.

public override bool WasPressedThisFrame()

Returns

bool