Add a "jump" mouse warp

pull/18/head
Jesse Vincent 11 years ago
parent 6571035260
commit 8450be21aa

@ -354,6 +354,12 @@ void _warp_cross(long left, long top, long height, long width) {
_draw_warp_section(right, y_center, x_center, y_center,40); _draw_warp_section(right, y_center, x_center, y_center,40);
} }
void _warp_jump(long left, long top, long height, long width) {
long x_center = left + width/2;
long y_center = top + height/2;
Mouse.moveAbsolute(x_center,y_center);
}
int last_x; int last_x;
@ -457,9 +463,9 @@ void warp_mouse(Key ninth) {
// the cloverleaf // the cloverleaf
_warp_cross(section_left, section_top, next_height,next_width); // _warp_cross(section_left, section_top, next_height,next_width);
_warp_jump(section_left, section_top, next_height,next_width);
} }

Loading…
Cancel
Save