From a751ef306bba715b884e32a4ed63adc461e513f0 Mon Sep 17 00:00:00 2001 From: groogy Date: Thu, 4 Nov 2010 16:29:04 +0000 Subject: [PATCH] git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1607 4e206d99-4929-0410-ac5d-dfc041789085 --- ruby/sfml-window/window/Event.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ruby/sfml-window/window/Event.cpp b/ruby/sfml-window/window/Event.cpp index 83d7e4081..71277e786 100644 --- a/ruby/sfml-window/window/Event.cpp +++ b/ruby/sfml-window/window/Event.cpp @@ -107,6 +107,15 @@ static VALUE Event_Initialize( VALUE self ) rb_obj_call_init( mouseWheel, 0, 0 ); rb_obj_call_init( size, 0, 0 ); rb_obj_call_init( text, 0, 0 ); + + rb_iv_set( joyButton, "@internal__parent_ref", self ); + rb_iv_set( joyMove, "@internal__parent_ref", self ); + rb_iv_set( key, "@internal__parent_ref", self ); + rb_iv_set( mouseButton, "@internal__parent_ref", self ); + rb_iv_set( mouseMove, "@internal__parent_ref", self ); + rb_iv_set( mouseWheel, "@internal__parent_ref", self ); + rb_iv_set( size, "@internal__parent_ref", self ); + rb_iv_set( text, "@internal__parent_ref", self ); } /* call-seq: