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
- Character spacing value is not applied when using a specific font asset
- [Android][IL2CPP] Player crashes on __memcpy_aarch64_simd+276 when invoking native code via a plugin on some ARM64 Android devices
- [Android]Resources fail to load when the AAB build contains a large Addressables Bundle
- Unity is loading internal version of SharpZipLib instead of local version
- The Context Menu items are ordered incorrectly
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.