reckfellENGINE

InputEventShortcut

Trigger event referencing one specific Shortcut resource.

On this page
class InputEventShortcutReckfellSharpInherits InputEvent

Assign Shortcut before use. That resource recognizes the trigger by identity even without physical bindings. Two distinct Shortcuts with equal Events do not represent the same trigger.

A new InputEventShortcut has pressed=true, but construction neither sends it to Input/GUI nor executes a command. Do not use AsText without an assigned resource. Do not place the trigger in Shortcut.Events. Reference identity, Changed, initial state and matching were tested; actual GUI routing was not accepted.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

InputEventShortcutConstructor
# InputEventShortcut
C#
public InputEventShortcut();

Creates a shortcut trigger with IsPressed()==true and no assigned Shortcut. Assign the resource before use; AsText without it produces native diagnostics and "None". Construction does not send it to the GUI.

Properties1

ShortcutProperty
# Shortcut
C#
public Shortcut Shortcut { get; set; }

Reference to the Shortcut that recognizes this trigger by identity. Assignment shares the resource and emits Changed. Two different Shortcuts with equal Events are not interchangeable for this trigger. Do not put this event inside a Shortcut Events array.

Methods2

GetShortcutShortcut
# GetShortcut
C#
public Shortcut GetShortcut();

Reads the same reference rather than a Shortcut copy. A new event has no resource. Do not dispose a borrowed wrapper while owners still need it.

Returns Shortcut

Shared Shortcut, or no assigned resource.

SetShortcutvoid
# SetShortcut
C#
public void SetShortcut(Shortcut shortcut);

Assigns a shared Shortcut reference and emits Changed. Invokes no command, assigns no physical key and does not automatically bind a control.

Parameters
NameTypeDefault
shortcutShortcut—
shortcut

Shared Shortcut reference; resource identity matters to a trigger.

Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.