mirror of
https://github.com/cemu-project/DS4Windows.git
synced 2025-02-18 17:06:19 +01:00
Added unchecked block for report generation
This commit is contained in:
parent
d74abc801f
commit
21350227c6
@ -624,6 +624,8 @@ namespace DS4Windows
|
||||
{
|
||||
Xbox360Buttons tempButtons = 0;
|
||||
|
||||
unchecked
|
||||
{
|
||||
if (state.Share) tempButtons |= Xbox360Buttons.Back;
|
||||
if (state.L3) tempButtons |= Xbox360Buttons.LeftThumb;
|
||||
if (state.R3) tempButtons |= Xbox360Buttons.RightThumb;
|
||||
@ -643,6 +645,7 @@ namespace DS4Windows
|
||||
if (state.Square) tempButtons |= Xbox360Buttons.X;
|
||||
if (state.PS) tempButtons |= Xbox360Buttons.Guide;
|
||||
xboxreport.SetButtons(tempButtons);
|
||||
}
|
||||
|
||||
xboxreport.LeftTrigger = state.L2;
|
||||
xboxreport.RightTrigger = state.R2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user