From 62258a37116f5dfd97f953954696bd4008c6ec3e Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Wed, 24 Apr 2019 03:19:06 -0500 Subject: [PATCH] Link delegates to class instance rather than linking to interface A decent boost --- DS4Windows/DS4Control/ControlService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DS4Windows/DS4Control/ControlService.cs b/DS4Windows/DS4Control/ControlService.cs index b541509..67a3a3e 100644 --- a/DS4Windows/DS4Control/ControlService.cs +++ b/DS4Windows/DS4Control/ControlService.cs @@ -891,7 +891,8 @@ namespace DS4Windows public void TouchPadOn(int ind, DS4Device device) { - ITouchpadBehaviour tPad = touchPad[ind]; + Mouse tPad = touchPad[ind]; + //ITouchpadBehaviour tPad = touchPad[ind]; device.Touchpad.TouchButtonDown += tPad.touchButtonDown; device.Touchpad.TouchButtonUp += tPad.touchButtonUp; device.Touchpad.TouchesBegan += tPad.touchesBegan;