diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-06-28 08:12:07 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-06-28 08:12:07 +0200 |
commit | 68e5a04f438fafd984ac0bf0424fa75294a8dc06 (patch) | |
tree | bc7bc3ec85629824a25184539a708ea226f747b3 /gui/options-dialog.cpp | |
parent | 1fddde254bb0c9532304ccd7db91aa1b6df5c3bf (diff) |
logic/joystick: fix multiple bugs
- the enumerator and the handle list are now static; joysticks were
erroneously destructed during refresh
- setup dinput only once; creating LPDIRECTINPUT8 many times causes
Release() to invalidate all handles
- don't create joystick handles many times; same thing applies
- refresh joy list on failed acquire; usually joystick is unplugged at
that moment leading to endless stderr spam
- use a static mutex as to avoid dinput races
Issue: #315
Diffstat (limited to 'gui/options-dialog.cpp')
0 files changed, 0 insertions, 0 deletions