|
|
@ -42,13 +42,13 @@ void end_warping() {
|
|
|
|
is_warping= false;
|
|
|
|
is_warping= false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void warp_mouse(Key quadrant) {
|
|
|
|
void warp_mouse(uint8_t quadrant) {
|
|
|
|
if (is_warping == false) {
|
|
|
|
if (is_warping == false) {
|
|
|
|
begin_warping();
|
|
|
|
begin_warping();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( quadrant.rawKey & MOUSE_END_WARP) {
|
|
|
|
if ( quadrant & MOUSE_END_WARP) {
|
|
|
|
end_warping();
|
|
|
|
end_warping();
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -57,16 +57,16 @@ void warp_mouse(Key quadrant) {
|
|
|
|
next_width = next_width / 2;
|
|
|
|
next_width = next_width / 2;
|
|
|
|
next_height = next_height/2;
|
|
|
|
next_height = next_height/2;
|
|
|
|
|
|
|
|
|
|
|
|
if (quadrant.rawKey & MOUSE_UP) {
|
|
|
|
if (quadrant & MOUSE_UP) {
|
|
|
|
// Serial.print(" - up ");
|
|
|
|
// Serial.print(" - up ");
|
|
|
|
} else if (quadrant.rawKey & MOUSE_DN) {
|
|
|
|
} else if (quadrant & MOUSE_DN) {
|
|
|
|
// Serial.print(" - down ");
|
|
|
|
// Serial.print(" - down ");
|
|
|
|
section_top = section_top + next_height;
|
|
|
|
section_top = section_top + next_height;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (quadrant.rawKey & MOUSE_L) {
|
|
|
|
if (quadrant & MOUSE_L) {
|
|
|
|
// Serial.print(" - left ");
|
|
|
|
// Serial.print(" - left ");
|
|
|
|
} else if (quadrant.rawKey & MOUSE_R) {
|
|
|
|
} else if (quadrant & MOUSE_R) {
|
|
|
|
// Serial.print(" - right ");
|
|
|
|
// Serial.print(" - right ");
|
|
|
|
section_left = section_left + next_width;
|
|
|
|
section_left = section_left + next_width;
|
|
|
|
}
|
|
|
|
}
|
|
|
|