Myo Armband mouse simulation question

Hello guys,
I have a working(somewhat) blueprint that simulates a mouse movement ingame for the Myo Armband controller. What I want to ask help for is the algorithm that calculates the mouse position. At the moment it does work somewhat OK, but it’s very clanky and unresponsive. For the time being I’ll be polishing it but I was wondering if there are some better ideas for mouse implementation. This is my blueprint script:

Thank you in advance for any help!