8 Answers
- Newest
- Most votes
- Most comments
0
I noticed that the OnPressed() function is called once for each input component.
So if you have 4 input components, that function will be called 4 times.
answered 5 years ago
0
Another feature to be aware of is: consuming or not consuming events. Those callbacks have a bool return value that allows you to indicate if you wish to consume the event.
answered 5 years ago
0
Hi @REDACTEDUSER
If I understand it, it's used for ui purposes?
answered 5 years ago
0
Yes but it's a more general idea that some listener have a higher priority than others and can consume those events.
answered 5 years ago
0
See a comment here:
dev\Code\Framework\AzFramework\AzFramework\Input\Events\InputChannelEventListener.h
//! Override to be notified when an input channel is active or its state or value is updated,
//! unless the event was consumed by a higher priority listener, or did not pass the filter.
//! \param[in] inputChannel The input channel that is active or whose state or value updated
//! \return True if the input event has been consumed, false otherwise
virtual bool OnInputChannelEventFiltered(const InputChannel& inputChannel) = 0;
answered 5 years ago
This post is closed: Adding new answers, comments, and votes is disabled.
Relevant content
- asked 2 years ago
- asked a year ago
- Accepted Answerasked 10 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 2 years ago