I am having the same issue only in technic launcher modpacks.
I play regular vanilla mincraft in its separate launcher with no problems
my mouse when in technic modpacks aims down towards the ground after any kind of movement upwards.
I have checked the mouses and the touchpad is dissabled on my HP laptop