From cff7282ae50df1314db348dac7428e3b472be9a0 Mon Sep 17 00:00:00 2001 From: Steve Streeting Date: Tue, 1 Feb 2022 17:03:41 +0000 Subject: [PATCH] Expose last axis move input mode to Blueprints --- Source/StevesUEHelpers/Public/StevesGameSubsystem.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/StevesUEHelpers/Public/StevesGameSubsystem.h b/Source/StevesUEHelpers/Public/StevesGameSubsystem.h index 9a583d2..986116f 100644 --- a/Source/StevesUEHelpers/Public/StevesGameSubsystem.h +++ b/Source/StevesUEHelpers/Public/StevesGameSubsystem.h @@ -171,6 +171,9 @@ public: /// Gets the device where the most recent button press happened UFUNCTION(BlueprintCallable) EInputMode GetLastInputButtonPressed(int PlayerIndex = 0) const { return InputDetector->GetLastButtonInputMode(PlayerIndex); } + /// Gets the device where the most recent axis move happened + UFUNCTION(BlueprintCallable) + EInputMode GetLastInputAxisMoved(int PlayerIndex = 0) const { return InputDetector->GetLastAxisInputMode(PlayerIndex); } UFUNCTION(BlueprintCallable) bool LastInputWasGamePad(int PlayerIndex = 0) const { return GetLastInputModeUsed(PlayerIndex) == EInputMode::Gamepad; }