ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


cursor_library

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
cursor_library [2017/07/14 21:32] korshuncursor_library [2017/07/14 21:40] 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>Do not use the cursor library in serverside scripts. It isn't supported for a number of reasons:
 +  - serverside cursors are very laggy
 +  - cursor library can't read user's mouse settings
 +  - cursor library can't read user's aspect ratio
 +</note>
  
 ===== Basic usage ===== ===== Basic usage =====
Line 39: Line 47:
 [[functions:SetCursorPosition]] and [[functions: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:SetCursorSpeed]], [[functions:SetCursorSpeedX]], [[functions:SetCursorSpeedY]] can change the cursor's speed (sensitivity).
  
 +==== Cursor wraparound ====
  
 +[[functions:EnableCursorWrap]], [[functions:EnableCursorWrapX]], [[functions:EnableCursorWrapY]] can enable or disable cursor wrapping. If cursor wrapping is enabled, then reaching the edge of the screen will move the cursor to the opposite edge. This sudden teleportation will not affect [[functions:CursorDeltaX]] and [[functions:CursorDeltaY]] readings.
  
  
cursor_library.txt · Last modified: 2017/07/14 21:40 by korshun