53 if (oldMode == newMode)
149 window->
keys[key] = (char) action;
161 if (codepoint < 32 || (codepoint > 126 && codepoint < 160))
199 if (x == 0.0 && y == 0.0)
292 return (
int) window->
keys[key];
304 "Invalid mouse button");
426 if (window->
cursor == cursor)
437 while (*prev != cursor)
438 prev = &((*prev)->next);
440 *prev = cursor->
next;
606 if (time != time || time < 0.0 || time > 18446744073.0)
void _glfwInputChar(_GLFWwindow *window, unsigned int codepoint, int mods, int plain)
Notifies shared code of a Unicode character input event.
GLFWcursorposfun cursorPos
GLsizei const GLuint * paths
struct GLFWcursor GLFWcursor
Opaque cursor object.
GLint GLint GLsizei GLsizei height
struct _GLFWwindow::@1 callbacks
#define _GLFW_REQUIRE_INIT()
GLint GLint GLint GLint GLint GLint y
GLFWmousebuttonfun mouseButton
GLenum GLenum GLsizei void * image
GLFWcursorenterfun cursorEnter
#define GLFW_CROSSHAIR_CURSOR
The crosshair shape.
GLenum GLenum GLsizei const GLuint GLboolean enabled
#define GLFW_ARROW_CURSOR
The regular arrow cursor shape.
_GLFWwindow * windowListHead
_GLFWlibrary _glfw
All global data protected by _glfwInitialized. This should only be touched after a call to glfwInit t...
struct GLFWwindow GLFWwindow
Opaque window object.
void _glfwInputDrop(_GLFWwindow *window, int count, const char **paths)
Notifies dropped object over window.
#define GLFW_CURSOR_DISABLED
#define _GLFW_SWAP_POINTERS(x, y)
_GLFWcursor * cursorListHead
#define GLFW_VRESIZE_CURSOR
The vertical resize arrow shape.
#define _GLFW_REQUIRE_INIT_OR_RETURN(x)
char keys[GLFW_KEY_LAST+1]
_GLFWwindow * cursorWindow
typedef GLboolean(APIENTRYP PFNGLISQUERYPROC)(GLuint id)
#define GLFW_CURSOR_NORMAL
GLint GLint GLint yoffset
GLuint GLuint GLsizei count
#define GLFW_HAND_CURSOR
The hand shape.
#define GLFW_JOYSTICK_LAST
struct _GLFWwindow * next
void _glfwInputMouseClick(_GLFWwindow *window, int button, int action, int mods)
Notifies shared code of a mouse button click event.
GLsizei const GLfloat * value
void _glfwInputScroll(_GLFWwindow *window, double xoffset, double yoffset)
Notifies shared code of a scroll event.
#define GLFW_INVALID_ENUM
One of the arguments to the function was an invalid enum value.
#define GLFW_INVALID_VALUE
One of the arguments to the function was an invalid value.
void _glfwInputCursorEnter(_GLFWwindow *window, int entered)
Notifies shared code of a cursor enter/leave event.
GLboolean stickyMouseButtons
#define GLFW_CURSOR_HIDDEN
void _glfwInputCursorMotion(_GLFWwindow *window, double x, double y)
Notifies shared code of a cursor motion event.
GLint GLint GLsizei width
#define GLFW_HRESIZE_CURSOR
The horizontal resize arrow shape.
void _glfwInputKey(_GLFWwindow *window, int key, int scancode, int action, int mods)
Notifies shared code of a physical key event.
#define GLFW_IBEAM_CURSOR
The text input I-beam cursor shape.
void _glfwInputError(int error, const char *format,...)
Notifies shared code of an error.
char mouseButtons[GLFW_MOUSE_BUTTON_LAST+1]
Window and context structure.
#define GLFW_STICKY_MOUSE_BUTTONS
GLint GLint GLint GLint GLint x