From c63ec78e2d431f3c4f988aa51c43a7391a969265 Mon Sep 17 00:00:00 2001 From: Ivan Gagis Date: Sun, 3 Mar 2024 15:48:13 +0200 Subject: [PATCH] ios: fix errors 2 --- src/ruisapp/glue/ios/glue.mm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ruisapp/glue/ios/glue.mm b/src/ruisapp/glue/ios/glue.mm index 40b3533..6999ab8 100644 --- a/src/ruisapp/glue/ios/glue.mm +++ b/src/ruisapp/glue/ios/glue.mm @@ -194,8 +194,8 @@ - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ handle_mouse_button( ruisapp::inst(), true, - ruis::Vec2r(p.x * scale, p.y * scale).rounded(), - ruis::MouseButton_e::LEFT, + ruis::vector2(p.x * scale, p.y * scale).rounded(), + ruis::mouse_button::left, 0 //TODO: id ); } @@ -210,7 +210,7 @@ - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{ // TRACE(<< "touch moved = " << ruis::Vec2r(p.x * scale, p.y * scale).rounded() << std::endl) handle_mouse_move( ruisapp::inst(), - ruis::Vec2r(p.x * scale, p.y * scale).rounded(), + ruis::vector2(p.x * scale, p.y * scale).rounded(), 0 //TODO: id ); } @@ -226,8 +226,8 @@ - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{ handle_mouse_button( ruisapp::inst(), false, - ruis::Vec2r(p.x * scale, p.y * scale).rounded(), - ruis::MouseButton_e::LEFT, + ruis::vector2(p.x * scale, p.y * scale).rounded(), + ruis::mouse_button::left, 0 // TODO: id ); } @@ -319,7 +319,7 @@ - (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event{ application::application(std::string name, const window_params& wp) : name(name), - window_pimpl(utki::makeUnique(wp)), + window_pimpl(std::make_unique(wp)), gui(utki::make_shared( utki::make_shared(), utki::make_shared(),