Move SetGamepadMappings out of rcore
This commit is contained in:
parent
6809f06b55
commit
4c59791903
12
src/rcore.c
12
src/rcore.c
|
|
@ -2022,18 +2022,6 @@ int GetGamepadButtonPressed(void)
|
||||||
return CORE.Input.Gamepad.lastButtonPressed;
|
return CORE.Input.Gamepad.lastButtonPressed;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set internal gamepad mappings
|
|
||||||
int SetGamepadMappings(const char *mappings)
|
|
||||||
{
|
|
||||||
int result = 0;
|
|
||||||
|
|
||||||
#if defined(PLATFORM_DESKTOP)
|
|
||||||
result = glfwUpdateGamepadMappings(mappings);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Check if a mouse button has been pressed once
|
// Check if a mouse button has been pressed once
|
||||||
bool IsMouseButtonPressed(int button)
|
bool IsMouseButtonPressed(int button)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1634,16 +1634,20 @@ const char *GetGamepadName(int gamepad)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Get selected monitor physical width in millimetres
|
// Get selected monitor physical width in millimetres
|
||||||
int GetMonitorPhysicalWidth(int monitor)
|
int GetMonitorPhysicalWidth(int monitor)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Get gamepad axis count
|
// Get gamepad axis count
|
||||||
int GetGamepadAxisCount(int gamepad)
|
int GetGamepadAxisCount(int gamepad)
|
||||||
{
|
{
|
||||||
return CORE.Input.Gamepad.axisCount;
|
return CORE.Input.Gamepad.axisCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set internal gamepad mappings
|
||||||
|
int SetGamepadMappings(const char *mappings)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1508,7 +1508,6 @@ const char *GetGamepadName(int gamepad)
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Get selected monitor physical width in millimetres
|
// Get selected monitor physical width in millimetres
|
||||||
int GetMonitorPhysicalWidth(int monitor)
|
int GetMonitorPhysicalWidth(int monitor)
|
||||||
{
|
{
|
||||||
|
|
@ -1525,9 +1524,14 @@ int GetMonitorPhysicalWidth(int monitor)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Get gamepad axis count
|
// Get gamepad axis count
|
||||||
int GetGamepadAxisCount(int gamepad)
|
int GetGamepadAxisCount(int gamepad)
|
||||||
{
|
{
|
||||||
return CORE.Input.Gamepad.axisCount;
|
return CORE.Input.Gamepad.axisCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set internal gamepad mappings
|
||||||
|
int SetGamepadMappings(const char *mappings)
|
||||||
|
{
|
||||||
|
return glfwUpdateGamepadMappings(mappings);
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -956,14 +956,12 @@ const char *GetGamepadName(int gamepad)
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Get selected monitor physical width in millimetres
|
// Get selected monitor physical width in millimetres
|
||||||
int GetMonitorPhysicalWidth(int monitor)
|
int GetMonitorPhysicalWidth(int monitor)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Get gamepad axis count
|
// Get gamepad axis count
|
||||||
int GetGamepadAxisCount(int gamepad)
|
int GetGamepadAxisCount(int gamepad)
|
||||||
{
|
{
|
||||||
|
|
@ -972,3 +970,9 @@ int GetGamepadAxisCount(int gamepad)
|
||||||
CORE.Input.Gamepad.axisCount = axisCount;
|
CORE.Input.Gamepad.axisCount = axisCount;
|
||||||
return CORE.Input.Gamepad.axisCount;
|
return CORE.Input.Gamepad.axisCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set internal gamepad mappings
|
||||||
|
int SetGamepadMappings(const char *mappings)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -1556,16 +1556,20 @@ const char *GetGamepadName(int gamepad)
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Get selected monitor physical width in millimetres
|
// Get selected monitor physical width in millimetres
|
||||||
int GetMonitorPhysicalWidth(int monitor)
|
int GetMonitorPhysicalWidth(int monitor)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Get gamepad axis count
|
// Get gamepad axis count
|
||||||
int GetGamepadAxisCount(int gamepad)
|
int GetGamepadAxisCount(int gamepad)
|
||||||
{
|
{
|
||||||
return CORE.Input.Gamepad.axisCount;
|
return CORE.Input.Gamepad.axisCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set internal gamepad mappings
|
||||||
|
int SetGamepadMappings(const char *mappings)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user