The interface used by the platform-specific code to report events. More...
Functions | |
void | _glfwInputChar (_GLFWwindow *window, unsigned int codepoint, int mods, int plain) |
Notifies shared code of a Unicode character input event. | |
void | _glfwInputCursorEnter (_GLFWwindow *window, int entered) |
Notifies shared code of a cursor enter/leave event. | |
void | _glfwInputCursorMotion (_GLFWwindow *window, double x, double y) |
Notifies shared code of a cursor motion event. | |
void | _glfwInputDrop (_GLFWwindow *window, int count, const char **names) |
Notifies dropped object over window. | |
void | _glfwInputError (int error, const char *format,...) |
Notifies shared code of an error. | |
void | _glfwInputFramebufferSize (_GLFWwindow *window, int width, int height) |
Notifies shared code of a framebuffer resize event. | |
void | _glfwInputKey (_GLFWwindow *window, int key, int scancode, int action, int mods) |
Notifies shared code of a physical key event. | |
void | _glfwInputMonitorChange (void) |
void | _glfwInputMouseClick (_GLFWwindow *window, int button, int action, int mods) |
Notifies shared code of a mouse button click event. | |
void | _glfwInputScroll (_GLFWwindow *window, double x, double y) |
Notifies shared code of a scroll event. | |
void | _glfwInputWindowCloseRequest (_GLFWwindow *window) |
Notifies shared code of a window close request event. | |
void | _glfwInputWindowFocus (_GLFWwindow *window, GLboolean focused) |
Notifies shared code of a window focus event. | |
void | _glfwInputWindowIconify (_GLFWwindow *window, int iconified) |
Notifies shared code of a window iconification event. | |
void | _glfwInputWindowPos (_GLFWwindow *window, int xpos, int ypos) |
Notifies shared code of a window movement event. | |
void | _glfwInputWindowSize (_GLFWwindow *window, int width, int height) |
Notifies shared code of a window resize event. |
The interface used by the platform-specific code to report events.
The event API is used by the platform-specific code to notify the shared code of events that can be translated into state changes and/or callback calls.
void _glfwInputChar | ( | _GLFWwindow * | window, |
unsigned int | codepoint, | ||
int | mods, | ||
int | plain | ||
) |
Notifies shared code of a Unicode character input event.
[in] | window | The window that received the event. |
[in] | codepoint | The Unicode code point of the input character. |
[in] | mods | Bit field describing which modifier keys were held down. |
[in] | plain | `GL_TRUE` if the character is regular text input, or `GL_FALSE` otherwise. |
void _glfwInputCursorEnter | ( | _GLFWwindow * | window, |
int | entered | ||
) |
void _glfwInputCursorMotion | ( | _GLFWwindow * | window, |
double | x, | ||
double | y | ||
) |
Notifies shared code of a cursor motion event.
[in] | window | The window that received the event. |
[in] | x | The new x-coordinate of the cursor, relative to the left edge of the client area of the window. |
[in] | y | The new y-coordinate of the cursor, relative to the top edge of the client area of the window. |
void _glfwInputDrop | ( | _GLFWwindow * | window, |
int | count, | ||
const char ** | names | ||
) |
void _glfwInputError | ( | int | error, |
const char * | format, | ||
... | |||
) |
Notifies shared code of an error.
[in] | error | The error code most suitable for the error. |
[in] | format | The `printf` style format string of the error description. |
Definition at line 85 of file examples/third_party/glfw/src/init.c.
void _glfwInputFramebufferSize | ( | _GLFWwindow * | window, |
int | width, | ||
int | height | ||
) |
void _glfwInputKey | ( | _GLFWwindow * | window, |
int | key, | ||
int | scancode, | ||
int | action, | ||
int | mods | ||
) |
Notifies shared code of a physical key event.
[in] | window | The window that received the event. |
[in] | key | The key that was pressed or released. |
[in] | scancode | The system-specific scan code of the key. |
[in] | action | GLFW_PRESS or GLFW_RELEASE. |
[in] | mods | The modifiers pressed when the event was generated. |
void _glfwInputMouseClick | ( | _GLFWwindow * | window, |
int | button, | ||
int | action, | ||
int | mods | ||
) |
Notifies shared code of a mouse button click event.
[in] | window | The window that received the event. |
[in] | button | The button that was pressed or released. |
[in] | action | GLFW_PRESS or GLFW_RELEASE. |
void _glfwInputScroll | ( | _GLFWwindow * | window, |
double | x, | ||
double | y | ||
) |
void _glfwInputWindowCloseRequest | ( | _GLFWwindow * | window | ) |
void _glfwInputWindowFocus | ( | _GLFWwindow * | window, |
GLboolean | focused | ||
) |
void _glfwInputWindowIconify | ( | _GLFWwindow * | window, |
int | iconified | ||
) |
void _glfwInputWindowPos | ( | _GLFWwindow * | window, |
int | xpos, | ||
int | ypos | ||
) |
void _glfwInputWindowSize | ( | _GLFWwindow * | window, |
int | width, | ||
int | height | ||
) |