Updated mouse parser to handle negative X coordinates.