mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2024-11-26 11:04:21 +01:00
Break out of TouchUnchanged case more quickly
This commit is contained in:
parent
71b91bc745
commit
e6bab70de2
@ -213,7 +213,7 @@ namespace DS4Windows
|
||||
public virtual void touchUnchanged(object sender, EventArgs unused)
|
||||
{
|
||||
s = dev.getCurrentStateRef();
|
||||
synthesizeMouseButtons();
|
||||
//synthesizeMouseButtons();
|
||||
}
|
||||
|
||||
private DS4State remapped = new DS4State();
|
||||
|
@ -67,7 +67,7 @@ namespace DS4Windows
|
||||
private bool PacketChanged(byte[] data, int touchPacketOffset)
|
||||
{
|
||||
bool changed = false;
|
||||
for (int i = 0, arLen = previousPacket.Length; i < arLen; i++)
|
||||
for (int i = 0, arLen = previousPacket.Length; !changed && i < arLen; i++)
|
||||
{
|
||||
byte oldValue = previousPacket[i];
|
||||
previousPacket[i] = data[i + TOUCHPAD_DATA_OFFSET + touchPacketOffset];
|
||||
|
Loading…
Reference in New Issue
Block a user