Added parameters to input events