ext/input.c
void Init_ray_input() {
  ray_cInput = rb_define_class_under(ray_mRay, "Input", rb_cObject);
  rb_define_alloc_func(ray_cInput, ray_input_alloc);

  /* @group Change input */
  rb_define_method(ray_cInput, "reset", ray_input_reset, 0);
  rb_define_method(ray_cInput, "press", ray_input_press, 1);
  rb_define_method(ray_cInput, "release", ray_input_release, 1);
  rb_define_method(ray_cInput, "mouse_pos=", ray_input_set_mouse_pos, 1);
  /* @engroup */

  /* @group Read input */
  rb_define_method(ray_cInput, "holding?", ray_input_holding, 1);
  rb_define_method(ray_cInput, "mouse_pos", ray_input_mouse_pos, 0);
  /* @endgroup */
}
/*
 * Document-class: Ray::Input
 *
 * An input object is used to keep track of pressed keys and the position of the
 * mouse. Methods are also provided to affect the state of the input, possibly
 * useful in tests.
 */
Document-class: Ray::Input
An input object is used to keep track of pressed keys and the position of the
mouse. Methods are also provided to affect the state of the input, possibly
useful in tests.
Document - class : Ray :: Input An input object is used to keep track of pressed keys and the position of the mouse . Methods are also provided to affect the state of the input possibly useful in tests .
void Init_ray_input() {
  ray_cInput = rb_define_class_under(ray_mRay, "Input", rb_cObject);
  rb_define_alloc_func(ray_cInput, ray_input_alloc);
  rb_define_method(ray_cInput, "reset", ray_input_reset, 0);
  rb_define_method(ray_cInput, "press", ray_input_press, 1);
  rb_define_method(ray_cInput, "release", ray_input_release, 1);
  rb_define_method(ray_cInput, "mouse_pos=", ray_input_set_mouse_pos, 1);
  rb_define_method(ray_cInput, "holding?", ray_input_holding, 1);
  rb_define_method(ray_cInput, "mouse_pos", ray_input_mouse_pos, 0);
}
void Init_ray_input ( ) { ray_cInput = rb_define_class_under ( ray_mRay , " " , rb_cObject ) ; rb_define_alloc_func ( ray_cInput , ray_input_alloc ) ; rb_define_method ( ray_cInput , " " , ray_input_reset , 0 ) ; rb_define_method ( ray_cInput , " " , ray_input_press , 1 ) ; rb_define_method ( ray_cInput , " " , ray_input_release , 1 ) ; rb_define_method ( ray_cInput , " " , ray_input_set_mouse_pos , 1 ) ; rb_define_method ( ray_cInput , " " , ray_input_holding , 1 ) ; rb_define_method ( ray_cInput , " " , ray_input_mouse_pos , 0 ) ; }
Document-class: Ray::Input
 An input object is used to keep track of pressed keys and the position of the
 mouse.
Document - class : Ray :: Input An input object is used to keep track of pressed keys and the position of the mouse .
/* @group Change input */ /* @engroup */ /* @group Read input */ /* @endgroup */