UCActionMappingComponent

Overview

Enhanced Input action mapping system. Creates a default UInputMappingContext at runtime with all standard game actions, binds them to the owning pawn’s ICInputReceiver interface, and spawns the mobile widget on mobile platforms.

Properties & Methods

Name Description
inputActionMap Map of ECInputActionType to UInputAction*
createDefaultInputAction Creates the default input mapping context with all actions
setup Binds all actions to the UEnhancedInputComponent and registers the mapping context
retrieveKey Returns the first key mapped to a given action type
init Spawns the mobile widget if running on mobile
// ECInputActionType enum values:
// MOVE, ROTATE, JUMP, TOUCH_CLICK, LMB_CLICK, CTRL_LMB_CLICK, RMB_CLICK,
// TOUCH_PINCH, SCROLL, CTRL_SCROLL, BLOCK, INTERACT, CHANGE_VIEW,
// DISPLAY_RESOURCE, DISPLAY_MAP

// Default key bindings:
// MOVE: ZQSD / Arrow keys / Gamepad Left Stick
// ROTATE: Mouse XY / Gamepad Right Stick
// JUMP: SpaceBar
// LMB_CLICK: Left Mouse Button
// INTERACT: F
// BLOCK: Tab
// CHANGE_VIEW: V
// DISPLAY_RESOURCE: I
// DISPLAY_MAP: M