/* call-seq: * Event.new(type) -> event * * You should never call this function directly. You should only aquire event's trough * SFML::Window#getEvent or SFML::Window#waitEvent, if you need to pass data to a method * that takes an event instance then make a proxy instance to simulate an event. * NOTE: Using this method works but it will act constant as you can't access any values. */ static VALUE Event_New( int argc, VALUE * args, VALUE aKlass ) { sf::Event *object = new sf::Event(); VALUE rbData = Data_Wrap_Struct( aKlass, 0, Event_Free, object ); rb_obj_call_init( rbData, argc, args ); return rbData; }