This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| cursor_library [2017/07/14 18:29] – korshun | cursor_library [2017/07/14 18:40] (current) – korshun | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Cursor library ====== | ====== Cursor library ====== | ||
| The ACSUtils cursor library allows mods to easily add mouse cursor support. | The ACSUtils cursor library allows mods to easily add mouse cursor support. | ||
| + | |||
| + | It fully supports wide screens and takes into account all mouse settings of the user to provide consistent cursor support regardless of aiming settings. | ||
| + | |||
| + | <note important> | ||
| + | - serverside cursors are very laggy. | ||
| + | - cursor library can't read user's mouse settings to adjust cursor speed and direction. | ||
| + | - cursor library can't read user's aspect ratio to find correct screen boundaries. | ||
| + | </ | ||
| ===== Basic usage ===== | ===== Basic usage ===== | ||
| Line 25: | Line 33: | ||
| ==== Getting cursor motion ==== | ==== Getting cursor motion ==== | ||
| - | [[CursorDeltaX]] and [[CursorDeltaY]] return the difference between the current and the previous cursor positions. | + | [[functions:CursorDeltaX]] and [[functions:CursorDeltaY]] return the difference between the current and the previous cursor positions. |
| + | |||
| + | [[functions: | ||
| + | |||
| + | ==== Setting coordinate system scale ==== | ||
| + | |||
| + | [[functions: | ||
| + | |||
| + | Calling [[functions: | ||
| + | |||
| + | ==== Moving the cursor ==== | ||
| + | |||
| + | [[functions: | ||
| + | |||
| + | ==== Changing cursor speed ==== | ||
| + | |||
| + | [[functions: | ||
| + | |||
| + | ==== Cursor wraparound ==== | ||
| - | [[CursorMotionX]] and [[CursorMotionY]] return | + | [[functions: |