diff --git a/bindings/ruby/sfml-window/window/Window.cpp b/bindings/ruby/sfml-window/window/Window.cpp index db8b6ec5..9f950e18 100644 --- a/bindings/ruby/sfml-window/window/Window.cpp +++ b/bindings/ruby/sfml-window/window/Window.cpp @@ -533,6 +533,7 @@ void Init_Window( void ) rb_define_alias( globalWindowClass, "width", "getWidth" ); rb_define_alias( globalWindowClass, "opened?", "isOpened" ); + rb_define_alias( globalWindowClass, "open?", "isOpened" ); rb_define_alias( globalWindowClass, "active=", "setActive" ); diff --git a/bindings/ruby/sfml-window/window/main.cpp b/bindings/ruby/sfml-window/window/main.cpp index 6561e73f..2e2e7cfa 100644 --- a/bindings/ruby/sfml-window/window/main.cpp +++ b/bindings/ruby/sfml-window/window/main.cpp @@ -82,19 +82,16 @@ void CreateKeyEnum( void ) globalKeyNamespace = rb_define_module_under( globalSFMLNamespace, "Key" ); for( int index = static_cast< int >( sf::Key::A ); index <= sf::Key::Z; index++ ) { - std::cout << static_cast< char >( index ) << " => " << keyNamesLetters[ index - sf::Key::A ] << std::endl; rb_define_const( globalKeyNamespace, keyNamesLetters[ index - sf::Key::A ], INT2FIX( index ) ); } for( int index = static_cast< int >( sf::Key::Num0 ); index <= sf::Key::Num9; index++ ) { - std::cout << static_cast< char >( index ) << " => " << keyNamesNum[ index - sf::Key::Num0 ] << std::endl; rb_define_const( globalKeyNamespace, keyNamesNum[ index - sf::Key::Num0 ], INT2FIX( index ) ); } for( int index = static_cast< int >( sf::Key::Escape ); index <= sf::Key::Count; index++ ) { - std::cout << index << " => " << keyNamesMisc[ index - sf::Key::Escape ] << std::endl; rb_define_const( globalKeyNamespace, keyNamesMisc[ index - sf::Key::Escape ], INT2FIX( index ) ); } } diff --git a/bindings/ruby/sfml-window/window/main.hpp b/bindings/ruby/sfml-window/window/main.hpp index 246590ac..db953c87 100644 --- a/bindings/ruby/sfml-window/window/main.hpp +++ b/bindings/ruby/sfml-window/window/main.hpp @@ -25,6 +25,8 @@ #include "ruby.h" +#define SFML_STATIC + VALUE GetNamespace( void ); // Ruby initiation function