ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


input_functions

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
Next revisionBoth sides next revision
input_functions [2017/04/15 18:12] korshuninput_functions [2017/04/15 18:23] korshun
Line 3: Line 3:
 ACSUtils provides a simplified interface to [[zdoom>GetPlayerInput]]. ACSUtils provides a simplified interface to [[zdoom>GetPlayerInput]].
  
-Every key can be+Each key can be
   * **Up** or **down** at any moment.   * **Up** or **down** at any moment.
   * **Pressed**, if it was up during the previous tick but is now down.   * **Pressed**, if it was up during the previous tick but is now down.
Line 36: Line 36:
 ===== Functions ===== ===== Functions =====
  
-ACSUtils provides many functions with names in the following formats:+ACSUtils provides a set of functions using the following convention:
  
   * ''bool Key**State**(int key)''   * ''bool Key**State**(int key)''
Line 50: Line 50:
 ===== Function list ===== ===== Function list =====
  
-^ state   ^ KeyState ^ KeyStateAny ^ PlayerKeyState^ PlayerKeyStateAny ^ +A full list of new input functions:
-^ up|[[KeyUp]]|[[KeyUpAny]]|[[PlayerKeyUp]]|[[PlayerKeyUpAny]]| +
-^ down|[[KeyDown]]|[[KeyDownAny]]|[[PlayerKeyDown]]|[[PlayerKeyDownAny]]| +
-^ pressed|[[KeyPressed]]|[[KeyPressedAny]]|[[PlayerKeyPressed]]|[[PlayerKeyPressedAny]]| +
-^ released|[[KeyReleased]]|[[KeyReleasedAny]]|[[PlayerKeyReleased]]|[PlayerKeyReleasedAny]]|+
  
 +^ ^ Key ^ KeyAny ^ PlayerKey^ PlayerKeyAny ^
 +^ up|[[functions:KeyUp]]|[[functions:KeyUpAny]]|[[functions:PlayerKeyUp]]|[[functions:PlayerKeyUpAny]]|
 +^ down|[[functions:KeyDown]]|[[functions:KeyDownAny]]|[[functions:PlayerKeyDown]]|[[functions:PlayerKeyDownAny]]|
 +^ pressed|[[functions:KeyPressed]]|[[functions:KeyPressedAny]]|[[functions:PlayerKeyPressed]]|[[functions:PlayerKeyPressedAny]]|
 +^ released|[[functions:KeyReleased]]|[[functions:KeyReleasedAny]]|[[functions:PlayerKeyReleased]]|[[functions:PlayerKeyReleasedAny]]|
  
-  * [[KeyUp]] 
-  * [[KeyDown]] 
-  * [[KeyPressed]] 
-  * [[KeyReleased]] 
- 
-  * [[KeyUpAny]] 
-  * [[KeyDownAny]] 
-  * [[KeyPressedAny]] 
-  * [[KeyReleasedAny]] 
- 
-  * [[PlayerKeyUp]] 
-  * [[ 
  
input_functions.txt · Last modified: 2017/07/09 15:47 by korshun