Skip to main content

Dialogue Input Service

Description

Wraps Unity's Input System to provide dialogue-specific input handling. Loads the Dialogue action map from an InputActionAsset, caches actions by name, and provides methods to check input state and resolve per-device display labels.

Interface

Type
IDialogueInputService
IGameInputProvider

Inherits

Type
N/A

Events

NameTypeDescription
OnOptionClickedAction<int>Raised when a dialogue option is clicked by mouse.
OnOptionHoveredAction<int>Raised when a dialogue option is hovered by mouse.

Public Methods

NameParametersReturn TypeDescription
WasPressedstring actionNameboolReturns true if the named action was pressed this frame.
GetDisplayLabelstring actionNamestringReturns the human-readable binding label for the current device mode.
CreateFromSettingsModuleSettingsDialogueInputServiceFactory method that creates and configures the service from module settings.