added calls to discard and suspend input events; added input queue autosuspend feature