Method: Ray::Input#mouse_pos=

Defined in:
ext/input.c

#mouse_pos=(pos) ⇒ Object

Changes the known position of the mouse

Notice this only affects the input object’s state, it won’t actually move the mouse.

Parameters:



73
74
75
76
77
# File 'ext/input.c', line 73

static
VALUE ray_input_set_mouse_pos(VALUE self, VALUE pos) {
  say_input_set_mouse_pos(ray_rb2input(self), ray_convert_to_vector2(pos));
  return pos;
}