Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions OpenFIREmain/OpenFIREcommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -752,14 +752,15 @@ void FW_Common::GetPosition()
Gamepad16.moveCam(conMoveX, conMoveY);
else AbsMouse5.move(conMoveX, conMoveY);

} else if(gunMode == FW_Const::GunMode_Verification) {
// Output mapped to Mouse resolution
conMoveX = map(conMoveX, 0, res_x, 0, 32767);
conMoveY = map(conMoveY, 0, res_y, 0, 32767);

AbsMouse5.move(conMoveX, conMoveY);
AbsMouse5.report();
} else {
if(gunMode == FW_Const::GunMode_Verification) {
// Output mapped to Mouse resolution
conMoveX = map(conMoveX, 0, res_x, 0, 32767);
conMoveY = map(conMoveY, 0, res_y, 0, 32767);

AbsMouse5.move(conMoveX, conMoveY);
AbsMouse5.report();
}
if(millis() - testLastStamp > 50) {
testLastStamp = millis();
// RAW Camera Output mapped to screen res (1920x1080)
Expand Down