Search Issue Tracker

Fixed in 1.1.0-preview.3

Votes

3

Found in [Package]

1.0.0-preview.4

Issue ID

1248073

Regression

Yes

Keyboard.current.(key).wasPressedThisFrame is true for large number of frames when pressed outside of Game Window focus

Package: Input System

-

Reproduction steps:
1. Open attached project "InputSystemEditor.zip" and scene "SampleScene"
2. Enter Play Mode
3. Press the "t" key
4. Observe Console window
5. Left-Click outside of the Game window (e.g. Inspector)
6. Press the "t" key
7. Observe Console window

Expected result: One message is printed
Actual result: Many messages are printed

Reproducible with: 2019.3.14f1, 2020.1.0b9, 2020.2.0a11 (1.0.0-preview.4, 1.0.0)
Not reproducible with: 2019.3.14f1, 2020.1.0b9, 2020.2.0a11 (1.0.0-preview.3)
Could not test with: 2018.4.23f1 (0.2.1-preview, never returns true), 2020.2.0a11 (0.2.8-preview, console errors break project)

Comments (3)

  1. Illusion-Walk

    Feb 16, 2021 13:12

    The issue still exists in version 1.1.0-preview.3.

  2. wouldntsavezion

    Jan 05, 2021 00:19

    Wow I just now experienced this, I thought I was going crazy, anyone found a fix ?

  3. awallick-sd

    May 19, 2020 23:53

    For mouse, clicking in the Game view and then outside of it in the Editor also seems to cause the Pointer position to be set to (0,0) for several frames.

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.