mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-01-11 15:59:08 +01:00
Added unchecked blocks
This commit is contained in:
parent
fdfa44662f
commit
0fc4cb1e32
@ -24,6 +24,8 @@ namespace DS4Windows
|
||||
}
|
||||
|
||||
protected Int32 Scale(Int32 Value, Boolean Flip)
|
||||
{
|
||||
unchecked
|
||||
{
|
||||
Value -= 0x80;
|
||||
|
||||
@ -33,6 +35,7 @@ namespace DS4Windows
|
||||
|
||||
return (Int32)(temp * outputResolution + (-32768));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public X360Device()
|
||||
@ -113,6 +116,8 @@ namespace DS4Windows
|
||||
Output[i] = 0;
|
||||
}
|
||||
|
||||
unchecked
|
||||
{
|
||||
if (state.Share) Output[10] |= (Byte)(1 << 5); // Back
|
||||
if (state.L3) Output[10] |= (Byte)(1 << 6); // Left Thumb
|
||||
if (state.R3) Output[10] |= (Byte)(1 << 7); // Right Thumb
|
||||
@ -149,6 +154,7 @@ namespace DS4Windows
|
||||
Output[20] = (Byte)((ThumbRY >> 0) & 0xFF); // RY
|
||||
Output[21] = (Byte)((ThumbRY >> 8) & 0xFF);
|
||||
}
|
||||
}
|
||||
|
||||
public Boolean Plugin(Int32 Serial)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user