Support parameterized events.

These events have one parameter in addition to the emitter. This could be
useful for some events like one signalling a keypress from a keyboard
and wanting to provide the scancode or ASCII character, or a sample from
an ADC in free-run mode.