User Tools

Site Tools


prpl:getkeydown

Differences

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

Link to this comparison view

prpl:getkeydown [2016/12/02 18:33] – external edit 127.0.0.1prpl:getkeydown [2018/06/14 17:17] (current) – added description kajacx
Line 1: Line 1:
-<- [[.:prplreference| PRPL reference]] <- [[.:prplreference#everything_else_2|Everything Else 2]]+<- [[.:prplreference| PRPL reference]] <- [[.:prplreference#input|Input]]
  
-=====  GETKEYDOWN  =====+=====  GetKeyDown  =====
  
 ^Arguments^Result^Notation^ ^Arguments^Result^Notation^
-| | | [ - ] |+string bool | [ string bool ] |
  
  
 === Description === === Description ===
 +Checks if the key was pressed down on this frame.
  
 === Examples === === Examples ===
-<code> s1 = GetStringFromStack();  +<code prpl
- stack.Push(new Data(0));  +"Space" GetKeyDown if 
- stack.Push(new Data(Input.GetKeyDown(kc2) ? 1 : 0));  +    @Fire #will be called only on the frame you press enter 
- stack.Push(new Data(0));  +endif
- +
 </code> </code>
  
prpl/getkeydown.1480721630.txt.gz · Last modified: 2016/12/02 18:33 by 127.0.0.1