A module for listening to incoming events from the window manager for their
subsequent processing.
Such a layer does not admit events directly to the data, but whether it can show
what is happening at the moment, which can serve as a cross-plotter tracking
of events.
Using the IEventHandler.nextEvent function, you can scroll through the queue of
events that can be processed and at each queue, the programmer needs to track
the events he needs by the functions of the same interface:
while (event.nextEvent()) {
if (event.keyDown == Key.Space) foo();
}
As you can see, we loop through each event and read what happened.
A module for listening to incoming events from the window manager for their subsequent processing.
Such a layer does not admit events directly to the data, but whether it can show what is happening at the moment, which can serve as a cross-plotter tracking of events.
Using the IEventHandler.nextEvent function, you can scroll through the queue of events that can be processed and at each queue, the programmer needs to track the events he needs by the functions of the same interface:
As you can see, we loop through each event and read what happened.