c3d.keyboard
The keyboard module is used for checking for inputs and interactions from the user
is_down(...) | checks whether the inputed keys are currently held down |
---|---|
has_text_input() | returns whether the c3d.textinput,c3d.textinput event is enabled |
set_text_input(enable) | sets whether the c3d.textinput,c3d.textinput event is enabled |
- is_down(...)Source
checks whether the inputed keys are currently held down
Parameters
- ... string the keys to check
Returns
- boolean whether the keys are held down
- has_text_input()Source
returns whether the c3d.textinput,c3d.textinput event is enabled
Returns
- boolean whether textinput event is enabled
- set_text_input(enable)Source
sets whether the c3d.textinput,c3d.textinput event is enabled
Parameters
- enable boolean whether to enable the textinput event