Permalink
Browse files

[SDL2] Use SDL_JoystickNameForIndex to get the name of a joystick giv…

…en its index.
  • Loading branch information...
Julien Jorge
Julien Jorge committed Aug 25, 2013
1 parent c9cbc72 commit 69dee5e13727a4a0f01ca71d6e6971a39b7f57c0
Showing with 1 addition and 1 deletion.
  1. +1 −1 bear-engine/core/src/input/code/joystick.cpp
@@ -39,7 +39,7 @@ bear::input::joystick::joystick( unsigned int joy_id )
{
CLAW_PRECOND( joy_id < number_of_joysticks() );
- const char* name( SDL_JoystickName(joy_id) );
+ const char* name( SDL_JoystickNameForIndex(joy_id) );
if ( name != NULL )
claw::logger << claw::log_verbose << "Creating joystick number " << joy_id

0 comments on commit 69dee5e

Please sign in to comment.