From f41b2b3f141d9bdaa49943b0ab46d33caa79ce43 Mon Sep 17 00:00:00 2001 From: groogy Date: Mon, 15 Nov 2010 09:08:22 +0000 Subject: [PATCH] Added @type get method to SFML::Event git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1645 4e206d99-4929-0410-ac5d-dfc041789085 --- bindings/ruby/sfml-window/window/Event.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/bindings/ruby/sfml-window/window/Event.cpp b/bindings/ruby/sfml-window/window/Event.cpp index d208c83b2..f7118cb29 100644 --- a/bindings/ruby/sfml-window/window/Event.cpp +++ b/bindings/ruby/sfml-window/window/Event.cpp @@ -275,6 +275,7 @@ void Init_Event( void ) // Instance methods rb_define_method( globalEventClass, "initialize", FUNCPTR( Event_Initialize ), 1 ); + rb_define_attr( globalEventClass, "type", 1, 0 ); rb_define_attr( globalEventClass, "joyButton", 1, 0 ); rb_define_attr( globalEventClass, "joyMove", 1, 0 ); rb_define_attr( globalEventClass, "key", 1, 0 );