mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 22:55:46 +00:00
Added stubs, implemented on Linux and Cocoa.
This commit is contained in:
+13
-3
@@ -443,9 +443,9 @@ void _glfwInitJoysticks(void)
|
||||
if (refCF)
|
||||
{
|
||||
CFStringGetCString(refCF,
|
||||
(char*) &(joystick->product),
|
||||
256,
|
||||
CFStringGetSystemEncoding());
|
||||
joystick->product,
|
||||
sizeof(joystick->product),
|
||||
kCFStringEncodingUTF8);
|
||||
}
|
||||
|
||||
joystick->numAxes = 0;
|
||||
@@ -625,3 +625,13 @@ int _glfwPlatformGetJoystickButtons(int joy, unsigned char* buttons,
|
||||
return button;
|
||||
}
|
||||
|
||||
|
||||
//========================================================================
|
||||
// Get joystick name
|
||||
//========================================================================
|
||||
|
||||
const char* _glfwPlatformGetJoystickName(int joy)
|
||||
{
|
||||
return _glfwJoysticks[joy].product;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user