xinput --list
It will show a list something like this:
� Virtual core pointer id=2 [master pointer (3)]
� ��� Virtual core XTEST pointer id=4 [slave pointer (2)]
� ��� Microsoft Microsoft�� 2.4GHz Transceiver v7.0 id=9 [slave pointer (2)]
� ��� Microsoft Microsoft�� 2.4GHz Transceiver v7.0 id=10 [slave pointer (2)]
� Virtual core keyboard id=3 [master keyboard (2)]
��� Virtual core XTEST keyboard id=5 [slave keyboard (3)]
��� Power Button id=6 [slave keyboard (3)]
��� Power Button id=7 [slave keyboard (3)]
��� Microsoft Microsoft�� 2.4GHz Transceiver v7.0 id=8 [slave keyboard (3)]
After you get the mouse ID, then type this command to make the mouse scroll reversed:
xinput set-button-map 1 2 3 5 4