Search Issue Tracker

Won't Fix

Votes

0

Found in

5.3.4f1

Issue ID

795456

Regression

No

StandardAssets.CrossPlatformInput - When MobileInput is enabled GetButtonDown and GetButtonUp are one frame late

Input

-

To reproduce:
1. Open attached project
2. Open the scene "MainScene" int the "_Scenes" folder
3. Press "Play"
4. Click anywhere

Notice that if GetButton is true for frames X to Y, GetButtonDown is true for frame X+1, and GetButtonUp is true for frame Y+2
Expected result: GetButtonDown is true for frame X, GetButtonUp is true for frame Y+1

Workaround: Use GetButton, and save last frame's value to get the frame where the button was pressed or released

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.