Ask about mouse motion event
Hi everybody, i am write a module (fakemouse) which is base swinput to fake mouse event. My module can fake mouse click ( left, right and middle button) well, but it had some problem with mouse 's moving.
I use function input_report_rel( ) to change position of mouse from current position (assume (x,y)) to
position (x + dx, y+dy)
But with this function it not move from (x,y) to (x+dx, y+dy), it just jump from (x,y) to (x+dx, y+dy). I have some look at in the kernel, but i cant find the solution for this problem. Anyone can help me?
input_report_rel(fkmouse.idev, REL_X, dx);
input_report_rel(fkmouse.idev, REL_Y, dy);