ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:cursordeltax

Differences

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

Link to this comparison view

Next revision
Previous revision
functions:cursordeltax [2017/04/15 19:00] – created korshunfunctions:cursordeltax [2017/05/29 18:08] (current) korshun
Line 1: Line 1:
 ====== CursorDeltaX ====== ====== CursorDeltaX ======
-{{tag>cursor needs_examples}}+{{tag>cursor}}
 ''fixed CursorDeltaX()'' ''fixed CursorDeltaX()''
  
 ===== Description ===== ===== Description =====
-Returns the difference between the current and previous X positions of the [[:Cursor]].+Returns the difference between the current [[:cursor]] X position and the position during the previous tic. 
 + 
 +Note that if the cursor is moved towards the edge of the screen in a non-wrapping mode, the position difference will be 0. To measure the velocity of the attempted mouse motion, use [[CursorMotionX]] and [[CursorMotionY]].
functions/cursordeltax.1492272034.txt.gz · Last modified: 2017/04/15 19:00 by korshun