For Example:
Code: Select all
Window
+-------------------------------------------------------+
| MouseBox |
| +------------------------------------------+ |
| | | |
| | | |
| | * Cursor | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| +------------------------------------------+ |
| |
+-------------------------------------------------------+
Code: Select all
if ( Cursor inside Mousebox )
{
do nothing with camera;
}
else
if ( Cursor outside MouseBox )
{
Camera -> Rotate;
}
Sorry if this is a bit hard to understand, but its kind of hard for me to explain...