Skip to content

ActionBinding

#include "Saturn/GameFramework/ActionBinding.h"

An ActionBinding is an key or mouse event that triggers based on certain conditions for example, if the 'A' key is pressed, the project will search for any ActionBinding that matches.

struct ActionBinding

Unlike ActionBindingData, ActionBindings are created and owned by the PlayerInputController.

Think of this as the runtime version of ActionBindingData.

An ActionBinding is defined by it's ActionBindingData.

Public members

RubyKey Key;
RubyMouseButton MouseButton;
ActionBindingType Type;
ActionBindingTriggerState State;

std::function<void()> Function;

ActionBindingData PlayerInputController ActionBindingType ActionBindingTriggerState