Link delegates to class instance rather than linking to interface

A decent boost
This commit is contained in:
Travis Nickles 2019-04-24 03:19:06 -05:00
parent b21ba5ce62
commit 62258a3711

View File

@ -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;