Skip to content

Commit

Permalink
fix: coordonées relatives sur le tactile des canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
paxo-rch committed Sep 4, 2024
1 parent c1a992b commit 66b89b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/lua/src/lua_canvas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ sol::table LuaCanvas::getTouch()
int16_t x = gui::ElementBase::touchX, y = gui::ElementBase::touchY;

sol::table result = lua->lua.create_table();
result.set(1, x);
result.set(2, y);
result.set(1, x - widget->getAbsoluteX());
result.set(2, y - widget->getAbsoluteY());

return result;
}
Expand Down

0 comments on commit 66b89b7

Please sign in to comment.