Move the mouse/keyboard/pad handlers over to using unique_ptr as the underlying base.