mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
feat: untested eye dominant falloff
This commit is contained in:
parent
37aa4c05c0
commit
55a0df1b66
@ -32,6 +32,10 @@ def velocity_falloff(self, var, out_x, out_y):
|
|||||||
else:
|
else:
|
||||||
eye_x = var.l_eye_x
|
eye_x = var.l_eye_x
|
||||||
eye_y = var.left_y
|
eye_y = var.left_y
|
||||||
|
elif self.settings.gui_left_eye_dominant:
|
||||||
|
var.l_eye_x = out_x
|
||||||
|
var.left_y = out_y
|
||||||
|
falloff = False
|
||||||
else:
|
else:
|
||||||
var.l_eye_x = out_x
|
var.l_eye_x = out_x
|
||||||
var.left_y = out_y
|
var.left_y = out_y
|
||||||
@ -58,6 +62,11 @@ def velocity_falloff(self, var, out_x, out_y):
|
|||||||
else:
|
else:
|
||||||
var.l_eye_x = out_x
|
var.l_eye_x = out_x
|
||||||
var.left_y = out_y # need to make sure we send these values... might re think the whole file
|
var.left_y = out_y # need to make sure we send these values... might re think the whole file
|
||||||
|
elif self.settings.gui_right_eye_dominant:
|
||||||
|
var.r_eye_x = out_x
|
||||||
|
var.right_y = out_y
|
||||||
|
falloff = False
|
||||||
|
|
||||||
else:
|
else:
|
||||||
falloff = False
|
falloff = False
|
||||||
var.r_eye_x = out_x
|
var.r_eye_x = out_x
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user