You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What problem does this solve or what need does it fill?
Currently there is a "clear" and specifically a "clear_just_pressed" function that is very useful for the mouse press input.
For mobile devices playing the game there doesn't seem a way to replicate this logic cleanly.
What solution would you like?
A function exposed similar to the mouse input, like clear_just_touched
What alternative(s) have you considered?
trying to hack a work around
Additional context
Useful if you have a ui overlay on top of your game and you don't want the touch to interact with things underneath the ui.
Currently I'm able to chain() my systems where the ui system interactions are before anything else and I'm able to clear the input if ui has interaction. This prevents a click to bypass the overlay button and interact with the map underneath. This is a situation where the ui and the game loop need to be in the same state.
The text was updated successfully, but these errors were encountered:
# Objective
- Resolves#10913.
- Extend `Touches` with methods that are implemented on `ButtonInput`.
## Solution
- Add function `clear_just_pressed` that clears the `just_pressed` state
of the touch input.
- Add function `clear_just_released` that clears the `just_released`
state of the touch input.
- Add function `clear_just_canceled` that clears the `just_canceled`
state of the touch input.
- Add function `release` that changes state of the touch input from
`pressed` to `just_released`.
- Add function `release_all` that changes state of every touch input
from `pressed` to `just_released`
- Add function `clear` that clears `just_pressed`, `just_released` and
`just_canceled` data for every input.
- Add function `reset_all` that clears `pressed`, `just_pressed`,
`just_released` and `just_canceled` data for every input.
- Add tests for functions above.
What problem does this solve or what need does it fill?
Currently there is a "clear" and specifically a "
clear_just_pressed
" function that is very useful for the mouse press input.For mobile devices playing the game there doesn't seem a way to replicate this logic cleanly.
What solution would you like?
A function exposed similar to the mouse input, like
clear_just_touched
What alternative(s) have you considered?
trying to hack a work around
Additional context
Useful if you have a ui overlay on top of your game and you don't want the touch to interact with things underneath the ui.
Currently I'm able to
chain()
my systems where the ui system interactions are before anything else and I'm able to clear the input if ui has interaction. This prevents a click to bypass the overlay button and interact with the map underneath. This is a situation where the ui and the game loop need to be in the same state.The text was updated successfully, but these errors were encountered: