Search Issue Tracker
By Design
Unknown (hidden) 2020.3.X, 2021.3.X, 2022.1.X, 2022.2.X, 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
- Shader warnings appear when Painting Trees on Terrain using Terrain Sample Assets
- Environment Samples count resets to 2048 when entering a higher number
- GameObject cannot be disabled when an Animator references an Animation Clip containing the GameObject's "IsActive" property
- Console errors are thrown when resolving Scene view shortcut conflicts with "Rebind to selected command" checked
- Spots of bad lighting appear on assets when the lighting is generated in a Scene
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