1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-12-03 07:28:51 -05:00

Renamed struct member to match other platforms.

This commit is contained in:
Camilla Berglund 2012-12-02 16:52:02 +01:00
parent 42c78fbe42
commit 3a773342e8

View File

@ -68,7 +68,7 @@ typedef struct
typedef struct typedef struct
{ {
int present; int present;
char product[256]; char name[256];
IOHIDDeviceInterface** interface; IOHIDDeviceInterface** interface;
@ -443,8 +443,8 @@ void _glfwInitJoysticks(void)
if (refCF) if (refCF)
{ {
CFStringGetCString(refCF, CFStringGetCString(refCF,
joystick->product, joystick->name,
sizeof(joystick->product), sizeof(joystick->name),
kCFStringEncodingUTF8); kCFStringEncodingUTF8);
} }
@ -632,6 +632,6 @@ int _glfwPlatformGetJoystickButtons(int joy, unsigned char* buttons,
const char* _glfwPlatformGetJoystickName(int joy) const char* _glfwPlatformGetJoystickName(int joy)
{ {
return _glfwJoysticks[joy].product; return _glfwJoysticks[joy].name;
} }