Enumerations |
enum | t_modifiers {
eCommandKey = 1,
eShiftKey = 2,
eControlKey = 4,
eAltKey = 8,
eLeftButton = 16,
eRightButton = 32,
eMiddleButton = 64,
ePopupMenu = 128,
eCapsLock = 256,
eAutoRepeat = 512
} |
| Bit mask values for various meta-key presses on the keyboard.
More...
|
enum | t_jmouse_cursortype {
JMOUSE_CURSOR_NONE,
JMOUSE_CURSOR_ARROW,
JMOUSE_CURSOR_WAIT,
JMOUSE_CURSOR_IBEAM,
JMOUSE_CURSOR_CROSSHAIR,
JMOUSE_CURSOR_COPYING,
JMOUSE_CURSOR_POINTINGHAND,
JMOUSE_CURSOR_DRAGGINGHAND,
JMOUSE_CURSOR_RESIZE_LEFTRIGHT,
JMOUSE_CURSOR_RESIZE_UPDOWN,
JMOUSE_CURSOR_RESIZE_FOURWAY,
JMOUSE_CURSOR_RESIZE_TOPEDGE,
JMOUSE_CURSOR_RESIZE_BOTTOMEDGE,
JMOUSE_CURSOR_RESIZE_LEFTEDGE,
JMOUSE_CURSOR_RESIZE_RIGHTEDGE,
JMOUSE_CURSOR_RESIZE_TOPLEFTCORNER,
JMOUSE_CURSOR_RESIZE_TOPRIGHTCORNER,
JMOUSE_CURSOR_RESIZE_BOTTOMLEFTCORNER,
JMOUSE_CURSOR_RESIZE_BOTTOMRIGHTCORNER
} |
| Mouse cursor types.
More...
|
Functions |
t_modifiers | jkeyboard_getcurrentmodifiers () |
| Return the last known combination of modifier keys being held by the user.
|
t_modifiers | jkeyboard_getcurrentmodifiers_realtime () |
| Return the current combination of modifier keys being held by the user.
|
void | jmouse_getposition_global (int *x, int *y) |
| Get the position of the mouse cursor in screen coordinates.
|
void | jmouse_setposition_global (int x, int y) |
| Set the position of the mouse cursor in screen coordinates.
|
void | jmouse_setposition_view (t_object *patcherview, double cx, double cy) |
| Set the position of the mouse cursor relative to the patcher canvas coordinates.
|
void | jmouse_setposition_box (t_object *patcherview, t_object *box, double bx, double by) |
| Set the position of the mouse cursor relative to a box within the patcher canvas coordinates.
|
void | jmouse_setcursor (t_object *patcherview, t_object *box, t_jmouse_cursortype type) |
| Set the mouse cursor.
|