Home

Awesome

CursorControl

A mouse cursor control module for Unity3D. It allows you to get and set the global mouse cursor position (relative to the OS), set the local mouse cursor position (relative to the unity game window), and simulate left, middle and right clicks.

Currently supporting Windows only.

A compiled version of this package is available on the Unity Asset Store: http://u3d.as/wbv.

Usage Example

The cursor control module has the following static methods:

Note: Operating Systems such as Windows consider the origin position of the mouse cursor to be the top-left corner of the display, whereas Unity considers it to be the bottom-left corner of the game window.

See the CursorControlExample scene for a simple example.

Release History

Known Issues

Contributing

Feel free to contribute and add a pull request to the github project. In particular, supporting extra platforms would be useful.

Author

This module was written by znebby.

License

This project is licensed under the MIT License - see the LICENSE file for details.