Specify a bounding box for the mouse cursor.
void __fastcall__ mouse_setbox (const struct mouse_box* box);
The function allows to set a bounding box for mouse movement.
- The function does not check if the mouse cursor is currently within the given rectangle. Placing the mouse cursor within the bounding box is the responsibility of the programmer.
- While the bounding box may be larger than the actual screen size, the standard mouse cursor draw routines may fail to set the cursor to coordinates outside of the screen area. Depending on the platform, you may have to supply your own mouse cursor routines.
- The function is only available as fastcall function, so it may only be used in presence of a prototype.
- See also