Skip to content

implement ActionIsJustReleased method#37

Merged
quasilyte merged 1 commit intomasterfrom
quasilyte/action_released
Nov 15, 2023
Merged

implement ActionIsJustReleased method#37
quasilyte merged 1 commit intomasterfrom
quasilyte/action_released

Conversation

@quasilyte
Copy link
Copy Markdown
Owner

This is not the final implementation as it doesn't handle some tricky combinations like joystick movements that emulate a D-pad.

It also ignores the taps as they're activated at the moment the gesture is finished (i.e. the finger is detached from a screen).

Right now we can handle gamepad, keyboard and mouse key release events.

Key modifiers work too and it's not necessary to release the modifier keys during the same frame as the main key.
So, a ctrl+lmb released event would trigger if lmb is released while ctrl is still being pressed.

A new example demonstrates how to use this new feature. It also demonstrates how to avoid some of the conflicts described in #36 (this is not a novel issue and it's not related to the release events directly).

Refs #25

This is not the final implementation as it doesn't handle
some tricky combinations like joystick movements that emulate a D-pad.

It also ignores the taps as they're activated at the moment the gesture
is finished (i.e. the finger is detached from a screen).

Right now we can handle gamepad, keyboard and mouse key release events.

Key modifiers work too and it's not necessary to release the modifier
keys during the same frame as the main key.
So, a `ctrl+lmb` released event would trigger if `lmb` is released
while `ctrl` is still being pressed.

A new example demonstrates how to use this new feature.
It also demonstrates how to avoid some of the conflicts
described in #36 (this is not a novel issue and it's not related
to the release events directly).

Refs #25
@quasilyte quasilyte merged commit 30fe583 into master Nov 15, 2023
@quasilyte quasilyte deleted the quasilyte/action_released branch November 15, 2023 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant