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
input_functions [2017/04/15 18:24] korshuninput_functions [2017/07/09 15:47] (current) korshun
Line 12: Line 12:
 ^ pressed|[[functions:KeyPressed]]|[[functions:KeyPressedAny]]|[[functions:PlayerKeyPressed]]|[[functions:PlayerKeyPressedAny]]| ^ pressed|[[functions:KeyPressed]]|[[functions:KeyPressedAny]]|[[functions:PlayerKeyPressed]]|[[functions:PlayerKeyPressedAny]]|
 ^ released|[[functions:KeyReleased]]|[[functions:KeyReleasedAny]]|[[functions:PlayerKeyReleased]]|[[functions:PlayerKeyReleasedAny]]| ^ released|[[functions:KeyReleased]]|[[functions:KeyReleasedAny]]|[[functions:PlayerKeyReleased]]|[[functions:PlayerKeyReleasedAny]]|
 +^ toggled|[[functions:KeyToggled]]|[[functions:KeyToggledAny]]|[[functions:PlayerKeyToggled]]|[[functions:PlayerKeyToggledAny]]|
  
 ===== Introduction ===== ===== Introduction =====
Line 17: Line 18:
 Each 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**
-  * **Released**, if it was down during the previous tick but is now up.+  * **Released**, if it was **down** during the previous tick but is now **up**. 
 +  * **Toggled**, if it is **pressed** or **released**.
  
 Pressed and released states are especially useful for menus as they allow the user to perform the action as many times as the key was pressed. Pressed and released states are especially useful for menus as they allow the user to perform the action as many times as the key was pressed.
input_functions.1492269863.txt.gz · Last modified: 2017/04/15 18:24 by korshun