User Tools

Site Tools


4rpl:commands:getkeydown

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
4rpl:commands:getkeydown [2021/03/13 13:14] – Fixed URL Karsten754rpl:commands:getkeydown [2024/02/16 13:30] (current) digitalizedMind
Line 3: Line 3:
  
 ====== GetKeyDown ====== ====== GetKeyDown ======
-GetKeyDown(<-key true) ->val+GetKeyDown(<-key <-ignorePressesOverUI) ->val
  
 ===== Description ===== ===== Description =====
Line 9: Line 9:
 Note: This only return true once until the key is released and pressed again. Note: This only return true once until the key is released and pressed again.
 The first argument is a string that specifies which key to check. The first argument is a string that specifies which key to check.
-The second argument indicates whether to ignore the events when over the UI. +The second argument indicates whether to ignore the events when the cursor is over the UI. 
-The list possible string for the first argument can be derived from the properties here: +The list of possible values for the first argument can be derived from the enumeration for  
-[[https://docs.unity3d.com/ScriptReference/KeyCode.html | Keys]] +[[https://docs.unity3d.com/ScriptReference/KeyCode.html | KeyCode]].
  
 ===== Examples ===== ===== Examples =====
4rpl/commands/getkeydown.1615659285.txt.gz · Last modified: 2021/03/13 13:14 by Karsten75