This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
cursor_library [2017/07/14 21:32] – korshun | cursor_library [2017/07/14 21: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. |
- | [[CursorMotionX]] and [[CursorMotionY]] return the difference between the current and the previous cursor positions that would' | + | [[functions:CursorMotionX]] and [[functions:CursorMotionY]] return the difference between the current and the previous cursor positions that would' |
==== Setting coordinate system scale ==== | ==== Setting coordinate system scale ==== | ||
- | [[SetCursorArea]] sets the scale of the coordinate system used by the cursor library. You can even set it to '' | + | [[functions:SetCursorArea]] sets the scale of the coordinate system used by the cursor library. You can even set it to '' |
- | Calling [[SetCursorArea]] also transforms the cursor' | + | Calling [[functions:SetCursorArea]] also transforms the cursor' |
==== Moving the cursor ==== | ==== Moving the cursor ==== | ||
- | [[SetCursorPosition]] and [[CenterCursor]] can be used to move the cursor from ACS. | + | [[functions:SetCursorPosition]] and [[functions:CenterCursor]] can be used to move the cursor from ACS. |
- | ==== Cursor wraparound | + | ==== Changing cursor speed ==== |
+ | [[functions: | ||
+ | ==== Cursor wraparound ==== | ||
+ | [[functions: | ||