This is mainly to play touchscreen games like temple run or subway surfers on the big hd screens of computers using keyboard controls.
My rough algorithm is:
if input is ( 'left' key ),
output is ( move pinter to centre of screen , then hold left mouse button, then move mouse pointer about 2 centimeters to left, then release left mouse button.)
if input is ( 'up' key ),
output is ( move pinter to centre of screen , then hold left mouse button, then move mouse pointer about 2 centimeters upwards, then release left mouse button.)
if input is ( 'right' key ),
output is ( move pinter to centre of screen , then hold left mouse button, then move mouse pointer about 2 centimeters to right, then release left mouse button.)
if input is ( 'down' key ),
output is ( move pinter to centre of screen , then hold left mouse button, then move mouse pointer about 2 centimeters downwards, then release left mousebutton.)