Merge pull request #126 from Raeschen/v2.0_beta_overlay_fix

Fix centering overlay not working
This commit is contained in:
Prohurtz 2024-12-27 18:48:39 -08:00 committed by GitHub
commit 222e1c0591
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 8 deletions

BIN
EyeTrackApp/Purple_Dot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

View File

@ -1 +0,0 @@
EyeTrackVR-Overlay.exe

View File

@ -1 +0,0 @@
ETVR_SteamVR_Calibration_Overlay.exe center

View File

@ -122,11 +122,9 @@ def center_overlay_calibrate(self):
tools = Path("Tools")
# try:
if var.overlay_active != True:
dirname = os.getcwd()
overlay_path = resource_path(tools / "center.bat")
os.startfile(overlay_path)
overlay_path = resource_path("tools/ETVR_SteamVR_Calibration_Overlay.exe")
os.startfile(overlay_path, arguments="center")
var.overlay_active = True
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
server_address = ("localhost", 2112)
@ -149,7 +147,7 @@ def center_overlay_calibrate(self):
def overlay_calibrate_3d(self):
try:
if var.overlay_active != True:
overlay_path = resource_path(tool / "calibrate.bat")
overlay_path = resource_path("tools/EyeTrackVR-Overlay.exe")
os.startfile(overlay_path)
var.overlay_active = True
while var.overlay_active: