virtual unsigned HandleEvent(const Event & event) = 0;
HandleEvent notifies the movie view that a certain event, such as input action, has occured. Users can call this handler to inform GFxPlayer of mouse (MouseEvent) and keyboard (KeyEvent) input, as well as stage and other events. It is also used for typed character event (CharEvent) as well as to set/remove movie's focus (SetFocusEvent/Event (Event::EventType::KillFocus)).
Any of the Event::EventType events can be used with HandleEvent.
Parameters |
Description |
const Event & event |
An object describing an event that took place. |
A bit that defines the HE_ReturnValueType.