Re: [hatari-devel] joystick subsystem patch for configurable axis mapping

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Le 13/12/2011 17:47, Matthias Arndt a écrit :

Hello,

you do :

+ if(strncmp(thismapping->SDLJoystickName, SDL_JoystickName(i),strlen(thismapping->SDLJoystickName)) == 0)

this means that if SDL reports "USB Gamepad xyz" or "USB Gamepad 123" it will match with your table "USB Gamepad".

Is this the expected behaviour (substring matching) ? Or would it be better to use strcmp to get exact matching ? (I don't know, I don't have any joystick)


Nicolas



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/