defaults write com.apple.AppleMultitouchMouse MouseWheels -int 1  
defaults write com.apple.AppleMultitouchTrackpad MouseWheels -int 0