mirror of
https://github.com/sinbad/StevesUEHelpers.git
synced 2025-02-23 17:45:23 +00:00
Expose last axis move input mode to Blueprints
This commit is contained in:
parent
2e841e3e3d
commit
cff7282ae5
@ -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; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user