The interface used by the platform-specific code to report events.
More...
|
void | _glfwInputChar (_GLFWwindow *window, unsigned int codepoint, int mods, int plain) |
| Notifies shared code of a Unicode character input event. More...
|
|
void | _glfwInputCursorEnter (_GLFWwindow *window, int entered) |
| Notifies shared code of a cursor enter/leave event. More...
|
|
void | _glfwInputCursorMotion (_GLFWwindow *window, double x, double y) |
| Notifies shared code of a cursor motion event. More...
|
|
void | _glfwInputDrop (_GLFWwindow *window, int count, const char **names) |
| Notifies dropped object over window. More...
|
|
void | _glfwInputError (int error, const char *format,...) |
| Notifies shared code of an error. More...
|
|
void | _glfwInputFramebufferSize (_GLFWwindow *window, int width, int height) |
| Notifies shared code of a framebuffer resize event. More...
|
|
void | _glfwInputKey (_GLFWwindow *window, int key, int scancode, int action, int mods) |
| Notifies shared code of a physical key event. More...
|
|
void | _glfwInputMonitorChange (void) |
|
void | _glfwInputMouseClick (_GLFWwindow *window, int button, int action, int mods) |
| Notifies shared code of a mouse button click event. More...
|
|
void | _glfwInputScroll (_GLFWwindow *window, double x, double y) |
| Notifies shared code of a scroll event. More...
|
|
void | _glfwInputWindowCloseRequest (_GLFWwindow *window) |
| Notifies shared code of a window close request event. More...
|
|
void | _glfwInputWindowFocus (_GLFWwindow *window, GLboolean focused) |
| Notifies shared code of a window focus event. More...
|
|
void | _glfwInputWindowIconify (_GLFWwindow *window, int iconified) |
| Notifies shared code of a window iconification event. More...
|
|
void | _glfwInputWindowPos (_GLFWwindow *window, int xpos, int ypos) |
| Notifies shared code of a window movement event. More...
|
|
void | _glfwInputWindowSize (_GLFWwindow *window, int width, int height) |
| Notifies shared code of a window resize event. More...
|
|
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.
Notifies shared code of a Unicode character input event.
- Parameters
-
[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. |
Definition at line 159 of file input.c.
Notifies shared code of a cursor enter/leave event.
- Parameters
-
[in] | window | The window that received the event. |
[in] | entered | GL_TRUE if the cursor entered the client area of the window, or GL_FALSE if it left it. |
Definition at line 213 of file input.c.
Notifies shared code of a cursor motion event.
- Parameters
-
[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. |
Definition at line 195 of file input.c.
Notifies dropped object over window.
- Parameters
-
[in] | window | The window that received the event. |
[in] | count | The number of dropped objects. |
[in] | names | The names of the dropped objects. |
Definition at line 219 of file input.c.
void _glfwInputError |
( |
int |
error, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
Notifies shared code of an error.
- Parameters
-
[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.
Notifies shared code of a framebuffer resize event.
- Parameters
-
[in] | window | The window that received the event. |
[in] | width | The new width, in pixels, of the framebuffer. |
[in] | height | The new height, in pixels, of the framebuffer. |
Definition at line 91 of file window.c.
Notifies shared code of a physical key event.
- Parameters
-
[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. |
Definition at line 134 of file input.c.
Notifies shared code of a mouse button click event.
- Parameters
-
[in] | window | The window that received the event. |
[in] | button | The button that was pressed or released. |
[in] | action | GLFW_PRESS or GLFW_RELEASE. |
Definition at line 180 of file input.c.
Notifies shared code of a scroll event.
- Parameters
-
[in] | window | The window that received the event. |
[in] | x | The scroll offset along the x-axis. |
[in] | y | The scroll offset along the y-axis. |
Definition at line 174 of file input.c.
Notifies shared code of a window close request event.
- Parameters
-
[in] | window | The window that received the event. |
Definition at line 103 of file window.c.
Notifies shared code of a window focus event.
- Parameters
-
[in] | window | The window that received the event. |
[in] | focused | GL_TRUE if the window received focus, or GL_FALSE if it lost focus. |
Definition at line 39 of file window.c.
Notifies shared code of a window iconification event.
- Parameters
-
[in] | window | The window that received the event. |
[in] | iconified | GL_TRUE if the window was iconified, or GL_FALSE if it was restored. |
Definition at line 85 of file window.c.
Notifies shared code of a window movement event.
- Parameters
-
[in] | window | The window that received the event. |
[in] | xpos | The new x-coordinate of the client area of the window. |
[in] | ypos | The new y-coordinate of the client area of the window. |
Definition at line 73 of file window.c.
Notifies shared code of a window resize event.
- Parameters
-
[in] | window | The window that received the event. |
[in] | width | The new width of the client area of the window. |
[in] | height | The new height of the client area of the window. |
Definition at line 79 of file window.c.