ztk::game released
Gives 1 when the last holder of the action let go since the step before this step.
ztk::game released NAME
Description
A press and a release between two steps give a step with pressed and released both 1, and held 0.
Returns
1 or 0.
Examples
% ztk::game action jump -keys space
> event generate . <KeyPress-space>
> event generate . <KeyRelease-space>
> ztk::game step
> list [ztk::game pressed jump] [ztk::game held jump] [ztk::game released jump]
1 0 1
Errors
% ztk::game released 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