synaptics_edge_motion
dx -= synaptics_edge_motion(sc, dx, 1);
dx += synaptics_edge_motion(sc, dx, -1);
dy -= synaptics_edge_motion(sc, dy, 1);
dy += synaptics_edge_motion(sc, dy, -1);
sdx -= synaptics_edge_motion(sc, sdx, 1);
sdx += synaptics_edge_motion(sc, sdx, -1);
sdy -= synaptics_edge_motion(sc, sdy, 1);
sdy += synaptics_edge_motion(sc, sdy, -1);