void __stdcall
GetMouseMatrix(float *matrix)
Result parameters:
float *matrix:
The mouse can make a matrix by follow movings:
- Left button and moving in the center of screen: rotate on X, and Y axis..
- Left button and moving in the side of screen: rotate on Z axis.
- Right button: move on X axis, and Z axis.
- Left+Right button: move on X axis, and Y axis.
- Middle button: Pan (fast move) on Z axis.
for example:
{
GetMouseMatrix(matrix);
SetCameraPos(matrix);
}
See: