Search Issue Tracker
By Design
By Design in 2023.1.X
Votes
0
Found in
2020.3.40f1
2021.3.10f1
2022.1.17f1
2022.2.0b9
2023.1.0a12
Issue ID
UUM-15349
Regression
No
[ChromeOS] Cursor position value is not updating when left mouse button is pressed
- Open the attached project
- Go to Edit > Project Settings > Player > Other Settings
- Set Scripting Backend to IL2CPP
- In Target Architectures section select x86 (Chrome OS) and x84-64 (Chrome OS and Magic Leap 2)
- In File > Build Settings make sure that the "TestScene" is added in Scenes in Build
- Build and Run for Android Platform
- In the opened application from the menu select "(3) Mouse - ChromeOS Mouse"
- Press the touchpad and move the cursor
- Observe the "/position" value
Expected: "/position" value is updating depending on where the mouse cursor is on the screen
Actual: "/position" value is not updating
Reproducible with: 2020.3.40f1, 2021.3.10f1, 2022.1.17f1, 2022.2.0b9, 2023.1.0a12
Notes:
- Position is updating, when the right mouse button is pressed (two fingers on a touchpad) and keeps updating after one finger is released
- When moving the cursor with one finger pressed Event Counter is not updating
- "isPressed" value says "False" even when the left mouse button is pressed
- The same behavior is observed with the touchpad and Magic mouse
- Issue is not reproducible with MacBook Pro (M1 Max)
Reproduced with devices:
- VLNQA00465 - Google Pixelbook (Google Pixelbook), CPU: Amber Lake-Y / Kaby Lake-U/Y, GPU: virgl (Mesa DRI Intel(R) HD Graphics 615 (KBL GT2)), OS: 11
- HP Chromebook 14a G5 Laptop, ChromeOS version: 102.0.5005.75 (64 bit), Android version 9, Build number: R102-14695.85.0
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
- JsonConvert conversion fails trying to call GetCallbackMethodsForType when [OnDeserialized] is used in a class
- Different text alignment in the column header in Entities "System" window
- Objects with Universal Render Pipeline/Particles/Lit shader are always lit up when changing their Rendering Layer Mask
Resolution Note:
As you can see in the link, if "Chrome OS Input Emulation" is checked, Chrome OS converts mouse and touchpad input events into touchscreen input events. So in order to get mouse input events, you need to uncheck the option.
https://docs.unity3d.com/2022.2/Documentation/Manual/android-ChromeOS-support-user-input.html
https://docs.unity3d.com/2022.2/Documentation/ScriptReference/PlayerSettings.Android-chromeosInputEmulation.html
Resolution Note (2023.1.X):
As you can see in the link, if "Chrome OS Input Emulation" is checked, Chrome OS converts mouse and touchpad input events into touchscreen input events. So in order to get mouse input events, you need to uncheck the option.
https://docs.unity3d.com/2022.2/Documentation/Manual/android-ChromeOS-support-user-input.html
https://docs.unity3d.com/2022.2/Documentation/ScriptReference/PlayerSettings.Android-chromeosInputEmulation.html