Rémi Bernon : dinput: Use a single list for all acquired devices.
Alexandre Julliard
julliard at winehq.org
Tue Jun 9 15:27:47 CDT 2020
Module: wine
Branch: master
Commit: 26c1131201f8fd9918a01231a7eb6f1989400858
URL: https://source.winehq.org/git/wine.git/?a=commit;h=26c1131201f8fd9918a01231a7eb6f1989400858
Author: Rémi Bernon <rbernon at codeweavers.com>
Date: Mon Jun 8 09:47:08 2020 +0200
dinput: Use a single list for all acquired devices.
Instead of going through devices list of dinputs list, and checking
their acquired field, which is not CPU friendly.
This also removes the now unused IDirectInputImpl critical section and
devices list.
Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dinput/device.c | 16 +++----
dlls/dinput/device_private.h | 2 +-
dlls/dinput/dinput_main.c | 88 +++++++++++++++++----------------------
dlls/dinput/dinput_private.h | 5 ++-
dlls/dinput/joystick_linux.c | 4 --
dlls/dinput/joystick_linuxinput.c | 4 --
dlls/dinput/joystick_osx.c | 4 --
dlls/dinput/keyboard.c | 4 --
dlls/dinput/mouse.c | 4 --
9 files changed, 51 insertions(+), 80 deletions(-)
Diff: https://source.winehq.org/git/wine.git/?a=commitdiff;h=26c1131201f8fd9918a01231a7eb6f1989400858
More information about the wine-cvs
mailing list