Skip to content

[BUG]: Input multitap is not working through remote input #939

Open
@codec-abc

Description

@codec-abc

Package version

3.1.0-exp.7

Environment

* OS:Windows 
* Unity version: 2022.4.3f1
* Graphics API: Not relevant
* Browser: Chrome 115.0.5790.170 (Build officiel) (64 bits) (cohort: Stable)

Steps To Reproduce

  1. Create a blank Unity project
  2. Add the com.unity.renderstreaming package in the latest version and fix all issues detected by the wizard window.
  3. Import the com.unity.renderstreaming package sample in the project.
  4. Modify the existing CameraControl input map by adding an action that listen on Mouse left with a multi tap interaction:
    image
  5. Add the following line in the Start method of BroadcastSample.cs : map["DoubleClick"].AddListener((a) => Debug.LogError($"[Input Receiver] double click {Time.realtimeSinceStartup} {a.phase} {a.ReadValue<float>()}"));
    image
  6. Download the server app through the wizard, launch it, launch the Broadcast scene
  7. Open Chrome on the appropriate page (receiver/index.html) and double click in the canvas element.
  8. Look at the logs in Unity.

Current Behavior

The double click action is starting but canceled right away as we can see in the log.

Expected Behavior

The double click action should be triggered when a double click is done.

Anything else?

On the same scene I have a PlayerInput using the same action map and a similar script to print logs. This way the events are handled directly in Unity without the UnityRenderStreaming and WebRTC part. In that case the logs show that the double click is correctly detected when I perform it.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingissuedThis means the ticket is already created on internal issue tracker

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions