Skip to content

Commit 06743a6

Browse files
authored
Merge pull request #124 from alessandro-satanassi/OpenFIRE-dev
Continue rendering to screen during cali verification.
2 parents af80a13 + f2c8adb commit 06743a6

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

OpenFIREmain/OpenFIREcommon.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -752,14 +752,15 @@ void FW_Common::GetPosition()
752752
Gamepad16.moveCam(conMoveX, conMoveY);
753753
else AbsMouse5.move(conMoveX, conMoveY);
754754

755-
} else if(gunMode == FW_Const::GunMode_Verification) {
756-
// Output mapped to Mouse resolution
757-
conMoveX = map(conMoveX, 0, res_x, 0, 32767);
758-
conMoveY = map(conMoveY, 0, res_y, 0, 32767);
759-
760-
AbsMouse5.move(conMoveX, conMoveY);
761-
AbsMouse5.report();
762755
} else {
756+
if(gunMode == FW_Const::GunMode_Verification) {
757+
// Output mapped to Mouse resolution
758+
conMoveX = map(conMoveX, 0, res_x, 0, 32767);
759+
conMoveY = map(conMoveY, 0, res_y, 0, 32767);
760+
761+
AbsMouse5.move(conMoveX, conMoveY);
762+
AbsMouse5.report();
763+
}
763764
if(millis() - testLastStamp > 50) {
764765
testLastStamp = millis();
765766
// RAW Camera Output mapped to screen res (1920x1080)

0 commit comments

Comments
 (0)