Search Issue Tracker
By Design
Votes
1
Found in
2017.4
2019.3.0f6
2020.1
Issue ID
1215828
Regression
No
Graphic tablet stylus right-click is detected as left-click by Event.current.button
How to reproduce:
1. Open the user-supplied project
2. Connect a drawing tablet and make sure its stylus's button is mapped to perform a right-click
3. Enter Play Mode in the "SampleScene" Scene, then left-click and right-click in the Game view
4. Observe the text in the upper left corner of the Game view
Expected result: the "Last clicked button" value alternates between left-click (button 0) and right-click (button 1)
Actual result: the "Last clicked button" value remains "0" (or the initial value "-1") even if a right-click is performed
Reproducible with: 2017.4.37f1, 2018.4.17f1, 2019.3.2f1, 2020.1.0a23
Reproduced with drawing tablet:
Wacom Bamboo Pen CTL-470
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
- "Rendering Debugger" displays incorrect overdraw count when using "Unlit/Texture" shader
- Scene and Game views break when the Editor window is snapped with the Microsoft PowerToys
- Materials do not transfer texture when the "Shader" parameter is changed from "Unlit/Texture" to "Universal Render Pipeline/Unlit"
- [Linux][Vulkan] Crash when opening searchable dialog
- The "Shader error in 'AE/Leaves': "Undefined punctual shadow filter algorithm"" error appears when build completes on a specific project
Resolution Note:
Pen events come in with touch event types, e.g. a pen down event will report Event.current.type = EventType.TouchDown and not EventType.MouseDown (the pointerType however will be Pen and not Touch), clicks are available and reported for pen events, just be sure to filter by TouchXxxx instead of MouseXxxx.