User Tools

Site Tools


prpl:getkey

<- PRPL reference <- Input

GetKey

ArgumentsResultNotation
Key True/False [ String - True/False ]

Description

Checks to see if a specific key has been held down. List of all key codes.

Examples

	s1 = GetStringFromStack(); 
		stack.Push(new Data(Input.GetKey(kc1) ? 1 : 0)); 
		stack.Push(new Data(0)); 
 
        if (GetKey("LeftArrow")) 
                "Held down" trace
        endif
prpl/getkey.txt · Last modified: 2018/06/14 17:14 by kajacx