kb

PP.interactive. kb

The namespace containing functions for the keyboard management.
Source:

Methods

(static) is_key_down(scene, key_code)

Test if a keyboard button is pressed.
Source:
Parameters:
Name Type Description
scene object The scene object.
key_code key_code One of the key codes of PP.key_codes.
Returns:
true if the button is pressed, false otherwise

(static) is_key_up(scene, key_code)

Test if a keyboard button is NOT pressed.
Source:
Parameters:
Name Type Description
scene object The scene object.
key_code key_code One of the key codes of PP.key_codes.
Returns:
true if the button is not pressed, false otherwise