Skip to content

FEnhancedInputUtils

Utility functions for converting Enhanced Input to Schola spaces/points.

Static functions that can be used by imitation player controllers and tests.

class FEnhancedInputUtils

Methods

BuildActionSpaceFromIMC

static bool BuildActionSpaceFromIMC(UInputMappingContext *MappingContext,
TInstancedStruct<FSpace> &OutActionSpace)

Build action space from an Input Mapping Context.

Parameters

  • MappingContext (UInputMappingContext)

  • OutActionSpace (TInstancedStruct<FSpace>)


PollActionsFromIMC

static bool PollActionsFromIMC(UInputMappingContext *MappingContext,
UEnhancedPlayerInput *EnhancedInput,
TInstancedStruct<FPoint> &OutActions)

Poll current action values from an Input Mapping Context.

Parameters

  • MappingContext (UInputMappingContext)

  • EnhancedInput (UEnhancedPlayerInput)

  • OutActions (TInstancedStruct<FPoint>)

Source: Source/ScholaImitation/Public/ImitationUtils/EnhancedInputUtils.h