a bug of getting the mouse position
Posted: 12 Feb 2018, 10:34
i use the code to get my mouse x and y position
but the data y_pos is the same as x_pos. Even if i change my code like this.
the data y_pos is base on the x position of my mouse . Is there a bug of this function?
cheers
Code: Select all
x_pos = simGetInt32Parameter(sim_intparam_mouse_x)
y_pos = simGetInt32Parameter(sim_intparam_mouse_y)
print(x_pos, y_pos,)
Code: Select all
y_pos = simGetInt32Parameter(sim_intparam_mouse_y)
print(y_pos,)
cheers