Commit ea8728c
committed
Fixed regression with initial focus causing added input devices to be disabled
- Fixed regression caused by #2365 where the focus state of the application was not being synced to the input runtime correctly, causing all input devices to be initially disabled until the game window was clicked away and then back.
- Fixed some incorrect setting of the `focusState` by just setting or clearing the ApplicationFocus flag instead of setting the entire value. In effect this has no current difference because the flags enum only has two values, but makes it future-proof.1 parent e492059 commit ea8728c
3 files changed
Lines changed: 27 additions & 27 deletions
File tree
- Packages/com.unity.inputsystem/InputSystem/Runtime
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
155 | 153 | | |
156 | 154 | | |
157 | 155 | | |
| |||
Lines changed: 22 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
276 | 275 | | |
277 | 276 | | |
278 | 277 | | |
279 | | - | |
280 | 278 | | |
281 | 279 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | 280 | | |
286 | 281 | | |
287 | 282 | | |
| |||
557 | 552 | | |
558 | 553 | | |
559 | 554 | | |
560 | | - | |
| 555 | + | |
561 | 556 | | |
562 | 557 | | |
563 | 558 | | |
564 | | - | |
| 559 | + | |
565 | 560 | | |
566 | 561 | | |
567 | 562 | | |
| |||
2027 | 2022 | | |
2028 | 2023 | | |
2029 | 2024 | | |
2030 | | - | |
2031 | | - | |
2032 | | - | |
2033 | | - | |
2034 | | - | |
2035 | 2025 | | |
2036 | 2026 | | |
2037 | 2027 | | |
| |||
2277 | 2267 | | |
2278 | 2268 | | |
2279 | 2269 | | |
2280 | | - | |
2281 | | - | |
2282 | | - | |
| 2270 | + | |
2283 | 2271 | | |
2284 | 2272 | | |
2285 | 2273 | | |
| |||
2451 | 2439 | | |
2452 | 2440 | | |
2453 | 2441 | | |
2454 | | - | |
2455 | 2442 | | |
2456 | 2443 | | |
2457 | 2444 | | |
| |||
4059 | 4046 | | |
4060 | 4047 | | |
4061 | 4048 | | |
| 4049 | + | |
| 4050 | + | |
| 4051 | + | |
| 4052 | + | |
| 4053 | + | |
| 4054 | + | |
| 4055 | + | |
| 4056 | + | |
| 4057 | + | |
| 4058 | + | |
| 4059 | + | |
| 4060 | + | |
| 4061 | + | |
| 4062 | + | |
| 4063 | + | |
4062 | 4064 | | |
4063 | 4065 | | |
4064 | 4066 | | |
| |||
0 commit comments