Class: Ray::Input
- Inherits:
-
Object
- Object
- Ray::Input
- Defined in:
- ext/input.c
Instance Method Summary collapse
- #holding?(key) ⇒ true, false
-
#mouse_pos ⇒ Ray::Vector2
The position of the mouse.
Instance Method Details
#holding?(key) ⇒ true, false
35 36 37 38 39 |
# File 'ext/input.c', line 35
static
VALUE ray_input_holding(VALUE self, VALUE key) {
return say_input_is_holding(ray_rb2input(self), NUM2INT(key)) ?
Qtrue : Qfalse;
}
|
#mouse_pos ⇒ Ray::Vector2
Returns The position of the mouse.
42 43 44 45 |
# File 'ext/input.c', line 42 static VALUE ray_input_mouse_pos(VALUE self) { return ray_vector2_to_rb(say_input_get_mouse_pos(ray_rb2input(self))); } |