Function zng_wgt_input::is_pressed
source ยท pub fn is_pressed(child: impl UiNode, state: impl IntoVar<bool>) -> impl UiNode
Expand description
P
If is_mouse_pressed
, is_touched_from_start
or is_shortcut_pressed
.
Note that is_mouse_pressed
and is_touched_from_start
do not consider pointer capture, use is_cap_pressed
to
include the captured state.