/* call-seq: * window.getInput() -> input * * This input gives access to the real-time state of keyboard, mouse and joysticks for this window */ static VALUE Window_GetInput( VALUE self ) { sf::Window *object = NULL; Data_Get_Struct( self, sf::Window, object ); VALUE rbData = Data_Wrap_Struct( globalInputClass, 0, 0, const_cast< sf::Input * >( &object->GetInput() ) ); rb_obj_call_init( rbData, 0, 0 ); return rbData; }