Commit 7174389
committed
joystickstatuswindow: don't update accel/gyro if closed
Avoid updating the accelerometer or gyroscope values if the window is
closed. This prevents a segfault when the window is closed for
controllers with accelerometers and gyroscopes, such as DualSense
controllers.
Signed-off-by: Sean Cross <[email protected]>1 parent ab27f58 commit 7174389
1 file changed
+10
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
328 | | - | |
329 | | - | |
330 | | - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
331 | 333 | | |
332 | 334 | | |
333 | 335 | | |
| |||
336 | 338 | | |
337 | 339 | | |
338 | 340 | | |
339 | | - | |
340 | | - | |
341 | | - | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
342 | 346 | | |
343 | 347 | | |
344 | 348 | | |
0 commit comments