Summary
When the touch is ‘Released’, the input action value as vector2 is 0,0.
It was working on previous version, when Completed the value was the last input touch location on screen.
What Type of Bug are you experiencing?
Gameplay
Steps to Reproduce
Create InputAction as Vector2
Add this input action into a mapping context
Bind the action to input touch 0, no triggers, no modifiers
Bind via Enhanced Input Component the input action on the ‘Completed’ TriggerType. The callback as const FInputActionValue& Value as param.
Do not forget to add the mapping context via the subsystem ![]()
Touch the screen quickly
- start = touch loc
- Trigger = touch loc
- Completed = 0,0
Expected Result
When Completed is called, I expect the last touch/mouse value.
Observed Result
This appear to be happen either on android platform and windows when we use ‘UseMouseForTouch’.
It was working on 5.6.
The work around is to get the touch value via EventTrigger::Triggered then on Completed callback we will get the correct value, BUT thats mean i have to set a Vec2 var every ‘frame’ on my case.
Not tested with: FInputActionInstance
Affects Versions
5.8
Platform(s)
Windows