Clarified character callback parameter.

This commit is contained in:
Camilla Berglund
2013-10-10 19:41:56 +02:00
parent 7dd8770e6f
commit 2c920fbb8b
4 changed files with 11 additions and 11 deletions
+3 -3
View File
@@ -148,13 +148,13 @@ void _glfwInputKey(_GLFWwindow* window, int key, int scancode, int action, int m
window->callbacks.key((GLFWwindow*) window, key, scancode, action, mods);
}
void _glfwInputChar(_GLFWwindow* window, unsigned int character)
void _glfwInputChar(_GLFWwindow* window, unsigned int codepoint)
{
if (character < 32 || (character > 126 && character < 160))
if (codepoint < 32 || (codepoint > 126 && codepoint < 160))
return;
if (window->callbacks.character)
window->callbacks.character((GLFWwindow*) window, character);
window->callbacks.character((GLFWwindow*) window, codepoint);
}
void _glfwInputScroll(_GLFWwindow* window, double xoffset, double yoffset)
+2 -2
View File
@@ -624,10 +624,10 @@ void _glfwInputKey(_GLFWwindow* window, int key, int scancode, int action, int m
/*! @brief Notifies shared code of a Unicode character input event.
* @param[in] window The window that received the event.
* @param[in] character The Unicode code point of the input character.
* @param[in] codepoint The Unicode code point of the input character.
* @ingroup event
*/
void _glfwInputChar(_GLFWwindow* window, unsigned int character);
void _glfwInputChar(_GLFWwindow* window, unsigned int codepoint);
/*! @brief Notifies shared code of a scroll event.
* @param[in] window The window that received the event.