mirror of
https://github.com/glfw/glfw.git
synced 2024-11-26 06:14:35 +00:00
Renamed struct member to match other platforms.
This commit is contained in:
parent
42c78fbe42
commit
3a773342e8
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user