mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Added a boolean argument to love.mousemoved indicating whether the event came from a touch press (love.mousepressed and love.mousereleased already have it.)
This commit is contained in:
@@ -239,6 +239,7 @@ Message *Event::convert(const SDL_Event &e) const
|
||||
vargs.push_back(new Variant(y));
|
||||
vargs.push_back(new Variant(xrel));
|
||||
vargs.push_back(new Variant(yrel));
|
||||
vargs.push_back(new Variant(e.motion.which == SDL_TOUCH_MOUSEID));
|
||||
msg = new Message("mousemoved", vargs);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user