GunCon2 Micro‐Calibrations Guide - ZFEbHVUE/Batocera-CRT-Script GitHub Wiki
GunCon2 Micro-Calibrations
In-Game Micro-Calibrations
- Button C + D-pad left/right → Decrease
x-min
→ Use this if your gun is off the left side of the screen. - Button C + D-pad up/down → Increase
x-max
→ Use this if your gun is off the right side of the screen.
Issue with Micro-Calibrations
The GunCon2 micro-calibrations reset on reboot and vary across different resolutions. To ensure the calibrations persist, follow the steps below:
Step 1: Capture Calibration Values
-
SSH into your system and run the following command:
evtest
-
Select the device:
Namco GunCon 2
-
Look for the following event code and values:
Event code 3 (ABS_RX) Value 0 Min 135 Max 735
-
Write down the
Min
andMax
values:min = -m 135
max = -M 735
Step 2: Edit the Calibration Script
-
Open the file
/userdata/system/scripts/1_GunCon2.sh
for editing. -
Find the section for the emulator or core you are calibrating. For example, under Nintendo NES, locate the following line:
#if [ "$4" == "nestopia" ](/ZFEbHVUE/Batocera-CRT-Script/wiki/-"$4"-==-"nestopia"-); then evdev-joystick --e /dev/input/by-id/usb-0b9a_016a-event-mouse -m 122 -M 730 -a 3 -f 0; fi
-
Remove the
#
at the beginning of the line to uncomment it. Replace the existing-m
and-M
values with your calibration values:if [ "$4" == "nestopia" ](/ZFEbHVUE/Batocera-CRT-Script/wiki/-"$4"-==-"nestopia"-); then evdev-joystick --e /dev/input/by-id/usb-0b9a_016a-event-mouse -m 135 -M 735 -a 3 -f 0; fi
-
Save the file.
Step 3: Apply the Calibration
The new calibration values will now be saved and automatically applied the next time you start the emulator.