Changed friend function mouse_event for parametrized function
Changes InputType to enumerator - without other parameters
Implementation of propagateEvent method and added friendly functions
Added propagation of events
Implemented propagateEvent method