Module: wine Branch: master Commit: 26c1131201f8fd9918a01231a7eb6f1989400858 URL: https://source.winehq.org/git/wine.git/?a=commit;h=26c1131201f8fd9918a01231a...
Author: Rémi Bernon rbernon@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@codeweavers.com Signed-off-by: Alexandre Julliard julliard@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=26c1131201f8fd9918a01...