Skip to content

Commit

Permalink
ios: fix errors 2
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Mar 3, 2024
1 parent 5f0b3ba commit c63ec78
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ruisapp/glue/ios/glue.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
Expand All @@ -210,7 +210,7 @@ - (void)touchesMoved:(NSSet<UITouch *> *)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
);
}
Expand All @@ -226,8 +226,8 @@ - (void)touchesEnded:(NSSet<UITouch *> *)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
);
}
Expand Down Expand Up @@ -319,7 +319,7 @@ - (void)touchesCancelled:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{

application::application(std::string name, const window_params& wp) :
name(name),
window_pimpl(utki::makeUnique<WindowWrapper>(wp)),
window_pimpl(std::make_unique<WindowWrapper>(wp)),
gui(utki::make_shared<ruis::context>(
utki::make_shared<ruis::render_opengles::renderer>(),
utki::make_shared<ruis::updater>(),
Expand Down

0 comments on commit c63ec78

Please sign in to comment.