Added saving of the initial button state when starting to record.
Removed InputManager::SetXDisplay.
Updated the documentation.