mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-26 03:35:23 +00:00
Remove Manager::currentMouseButtons()
This commit is contained in:
parent
752faf11f2
commit
9e0990a70f
@ -219,7 +219,7 @@ void Manager::generateSetCursorMessage(const gfx::Point& mousePos)
|
||||
Widget* dst = (capture_widget ? capture_widget: mouse_widget);
|
||||
if (dst)
|
||||
enqueueMessage(newMouseMessage(kSetCursorMessage, dst,
|
||||
mousePos, currentMouseButtons()));
|
||||
mousePos, _internal_get_mouse_buttons()));
|
||||
else
|
||||
set_mouse_cursor(kArrowCursor);
|
||||
}
|
||||
@ -447,7 +447,7 @@ void Manager::dispatchMessages()
|
||||
{
|
||||
// Add the "Queue Processing" message for the manager.
|
||||
enqueueMessage(newMouseMessage(kQueueProcessingMessage, this,
|
||||
get_mouse_position(), currentMouseButtons()));
|
||||
get_mouse_position(), _internal_get_mouse_buttons()));
|
||||
|
||||
pumpQueue();
|
||||
}
|
||||
@ -660,7 +660,7 @@ void Manager::setMouse(Widget* widget)
|
||||
it = widget_parents.begin();
|
||||
|
||||
Message* msg = newMouseMessage(kMouseEnterMessage, NULL,
|
||||
get_mouse_position(), currentMouseButtons());
|
||||
get_mouse_position(), _internal_get_mouse_buttons());
|
||||
|
||||
for (; it != widget_parents.end(); ++it) {
|
||||
(*it)->flags |= JI_HASMOUSE;
|
||||
@ -1263,12 +1263,6 @@ Message* Manager::newMouseMessage(MessageType type,
|
||||
return msg;
|
||||
}
|
||||
|
||||
// static
|
||||
MouseButtons Manager::currentMouseButtons()
|
||||
{
|
||||
return _internal_get_mouse_buttons();
|
||||
}
|
||||
|
||||
// static
|
||||
void Manager::broadcastKeyMsg(Message* msg)
|
||||
{
|
||||
|
@ -108,7 +108,6 @@ namespace ui {
|
||||
static Message* newMouseMessage(MessageType type,
|
||||
Widget* widget, const gfx::Point& mousePos,
|
||||
MouseButtons buttons, const gfx::Point& wheelDelta = gfx::Point(0, 0));
|
||||
static MouseButtons currentMouseButtons();
|
||||
void broadcastKeyMsg(Message* msg);
|
||||
|
||||
static Manager* m_defaultManager;
|
||||
|
Loading…
x
Reference in New Issue
Block a user