Commit ed76202
FIX: Handle pointer click events with multiple sources (#1678)
* Handle pointer click events that come from multiple input soruces at the same time
* Add changelog
* Use old syntax for switch to make formatter happy
* Handle all duplicate pointer events instead of only clicks
* Read device states for all Pointer behaviors
* Add a test to check if Pointer input events from multiple devices at the same time are handled correctly
* cleanup
* Edit comment, the behaviour also happens under 'normal' conditions
* Change comment again...
* Add bug case to the CHANGELOG; Add more explanation to test a comment
* Extract pointer states filtering to a separate method
* fixup CHANGELOG after merging with develop
---------
Co-authored-by: James McGill <jamesmcgill@users.noreply.github.com>
Co-authored-by: James McGill <james.mcgill@unity3d.com>1 parent 808a649 commit ed76202
4 files changed
Lines changed: 83 additions & 34 deletions
File tree
- Assets/Tests/InputSystem/Plugins
- Packages/com.unity.inputsystem
- InputSystem
- Plugins/UI
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1398 | 1398 | | |
1399 | 1399 | | |
1400 | 1400 | | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
1401 | 1432 | | |
1402 | 1433 | | |
1403 | 1434 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2940 | 2940 | | |
2941 | 2941 | | |
2942 | 2942 | | |
2943 | | - | |
2944 | | - | |
2945 | 2943 | | |
| 2944 | + | |
2946 | 2945 | | |
2947 | 2946 | | |
2948 | 2947 | | |
| |||
Lines changed: 48 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1713 | 1713 | | |
1714 | 1714 | | |
1715 | 1715 | | |
1716 | | - | |
1717 | | - | |
1718 | | - | |
1719 | | - | |
1720 | | - | |
1721 | | - | |
1722 | | - | |
1723 | | - | |
1724 | | - | |
1725 | | - | |
1726 | | - | |
1727 | | - | |
1728 | | - | |
1729 | | - | |
1730 | | - | |
1731 | | - | |
1732 | | - | |
1733 | | - | |
1734 | | - | |
1735 | | - | |
1736 | | - | |
1737 | | - | |
1738 | | - | |
1739 | | - | |
1740 | | - | |
1741 | | - | |
1742 | | - | |
1743 | | - | |
1744 | | - | |
1745 | 1716 | | |
1746 | 1717 | | |
1747 | 1718 | | |
| |||
2126 | 2097 | | |
2127 | 2098 | | |
2128 | 2099 | | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
| 2145 | + | |
2129 | 2146 | | |
2130 | 2147 | | |
2131 | 2148 | | |
| |||
2142 | 2159 | | |
2143 | 2160 | | |
2144 | 2161 | | |
| 2162 | + | |
| 2163 | + | |
2145 | 2164 | | |
2146 | 2165 | | |
2147 | 2166 | | |
2148 | 2167 | | |
2149 | 2168 | | |
2150 | | - | |
2151 | | - | |
2152 | | - | |
2153 | 2169 | | |
2154 | 2170 | | |
2155 | 2171 | | |
| |||
0 commit comments