We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
typedef struct ilI_mouseMove { int x, y; } ilI_mouseMove;
A structure used to represent a movement of the mouse in relative coordinates.
typedef struct ilI_mouseWheel { int x, y; } ilI_mouseWheel;
A structure used to represent scrolling of the mouse wheel.
#define IL_INPUT_RANGE (1)
The event range for input events. This is going to be changed in 1.0.
#define IL_INPUT_KEYDOWN ((IL_INPUT_RANGE << 8) + 0) #define IL_INPUT_KEYUP ((IL_INPUT_RANGE << 8) + 1) #define IL_INPUT_MOUSEDOWN ((IL_INPUT_RANGE << 8) + 2) #define IL_INPUT_MOUSEUP ((IL_INPUT_RANGE << 8) + 3)
These events have an integer as their data argument, and pass GLFW keycodes.
#define IL_INPUT_MOUSEMOVE ((IL_INPUT_RANGE << 8) + 4)
This event passes a mouseMove structure.
#define IL_INPUT_MOUSEWHEEL ((IL_INPUT_RANGE << 8) + 5)
This event passes a mouseWheel structure
int ilI_isKeySet(int key);
Tests whether the given GLFW keycode is active.
int ilI_isButtonSet(int button);
The same, but for mouse buttons.
void ilI_grabMouse(int mode);
Grabs the mouse so that it can't leave the window, and turns it invisible. This is useful for games which control the camera with a pointing device.