We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1872 - Full joystick name not returned, only first character of the name
Summary: Full joystick name not returned, only first character of the name
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: joystick (show other bugs)
Version: 2.0.0
Hardware: x86_64 Windows 7
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-28 14:55 UTC by Anthony Walter
Modified: 2013-10-18 06:19 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Walter 2013-05-28 14:55:21 UTC
I have only 1 joystick to test this with but on Windows 7 64 bit when building a  32 bit application, SDL 2.0 (RC1) is not returning the entire joystick name.

My joystick is an official Microsoft Wireless Xbox 360 controller and string returned from SDL_JoystickName is the partial string "M" and not the full name.
Comment 1 fwddmovb 2013-06-28 12:54:44 UTC
Are you sure the returned string are 8bit chars and not wide 16bit chars? Try the debugger and take a look at the data.
Comment 2 Sam Lantinga 2013-07-12 02:24:24 UTC
Can you build SDL and debug this on your end?  I wasn't able to reproduce this.  I got back a UTF-8 string that was the correct name of the joystick.

You are using the XInput code path in the SDL joystick driver, right?
Comment 3 Sam Lantinga 2013-10-18 06:19:50 UTC
This was a problem with the mingw32 build.  Fixed!
http://hg.libsdl.org/SDL/rev/1451063c8ecd