mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 12:51:05 +08:00
Removed some debugging output and added another alias for SFML::Window
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1648 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
262d9bfc1d
commit
bbb8cbb25a
@ -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" );
|
||||
|
||||
|
@ -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 ) );
|
||||
}
|
||||
}
|
||||
|
@ -25,6 +25,8 @@
|
||||
|
||||
#include "ruby.h"
|
||||
|
||||
#define SFML_STATIC
|
||||
|
||||
VALUE GetNamespace( void );
|
||||
|
||||
// Ruby initiation function
|
||||
|
Loading…
Reference in New Issue
Block a user