InputSystem icon indicating copy to clipboard operation
InputSystem copied to clipboard

[0.2.8-preview] Can't get Mouse position with Press Interaction

Open ghost opened this issue 7 years ago • 1 comments

Hello !

I've setup a simple scheme, with a "Sign" action, bind on "position [Mouse]". I've set the interaction to Press.

2019-04-27 10_37_30-Unity 2019 1 0f2 Personal -  PREVIEW PACKAGES IN USE  - SampleScene unity - Inpu

But the event is only trigger once the game view get the focus, when I click on Left Mouse Button. When I click elsewhere in Unity and click again in the game view, the event is triggered, but only once, even if I keep clicking in the game view.

(Edited to precise what I think should be the intented behaviour) What I expect is the event to be triggered each time I click on the left mouse.

Here's a simple Unity project to test : InputSystem.zip

Informations :

  • Unity 2019.1.0f2
  • InputSystem 0.2.8-preview
  • Scripting Runtime : .NET 4.x with Mono backend and API Compatibility Level .NET 4.x
  • No other package installed
  • Tested on Windows 10 64 bits (Pro, v1809)

ghost avatar Apr 27 '19 08:04 ghost

InputSystem.zip How to achieve it. Also recommend to visit our forum for alternative solution: https://forum.unity.com/forums/new-input-system.103/

JiaUnity avatar Jun 15 '19 02:06 JiaUnity