-
Notifications
You must be signed in to change notification settings - Fork 0
Event handling
Igor Usenko edited this page Jun 13, 2022
·
12 revisions
There are two kinds of events:
- Touch events
- Component events
There are four types of touch events - touch, move, release, gesture and button.
When the user touches the screen - the system tries to find a component that holds a touchpoint.
If such a component is found - it becomes the focused component. It means that all the events, until the touch screen release, will go to this component.
Each component can declare a handler function that can handle events from another component.
Handle means - modification of the state of the component.