mouse: Move set_mouse_settings() to avoid declaration
mouse: Add scroll wheel emulation for trackballs

Some trackballs don't have a separate scroll wheel, so one of the
buttons needs to be repurposed so pressing it will turn the main ball
into a wheel.

https://bugzilla.gnome.org/show_bug.cgi?id=645666