How to Aim Dynamically in 2D with IK?

I have full rigged character and it has lots of animations like walk, run, idle, shoot etc.

I want to move both Arms up and down that depends on mouse position like below video.

I have classic IK setup.

How can I move both arms that sticks to the weapon?

Did you figure out on how to do this?