/* * Generate the up click part of a click event * * This might be useful in concert with {Mouse.click_down} if you want * to inject some behaviour between the down and up click events. * * You can optionally specify a point to click; the mouse cursor will * instantly jump to the given point; otherwise the click event happens * at the current cursor position. * * @overload click_up() * @return [CGPoint] * @overload click_up(point) * @param point [CGPoint] * @return [CGPoint] */ static VALUE rb_mouse_click_up(const int argc, VALUE* const argv, UNUSED const VALUE self) { switch (argc) { case 0: mouse_click_up(); break; case 1: default: mouse_click_up2(rb_mouse_unwrap_point(argv[0])); } return CURRENT_POSITION; }
void mouse_click2(CGPoint point) { mouse_click_down2(point); mouse_click_up2(point); }
void mouse_click_up() { mouse_click_up2(mouse_current_position()); }