ztk::game held
Gives 1 while a key, the pointer, or a finger holds the action.
ztk::game held NAME
Description
The state is the state at the start of the current step.
Returns
1 or 0.
Examples
% ztk::game action jump -keys space
> event generate . <KeyPress-space>
> ztk::game step 2
> ztk::game held jump
1
Errors
% ztk::game held nosuch
no action "nosuch"
-errorcode ZTK GAME ACTION nosuch
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.7