Skip to content

Mouse events, Finish events in general#6

Open
saveman71 wants to merge 12 commits intomasterfrom
finish-events
Open

Mouse events, Finish events in general#6
saveman71 wants to merge 12 commits intomasterfrom
finish-events

Conversation

@saveman71
Copy link
Collaborator

No description provided.

return sf::Mouse::isButtonPressed(toNative(button));
}

Vector2i Mouse_SFML::getPosition()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GetPosition give the global position of the mouse cursor,

we may need " sf::Mouse::getPosition ( const Window & relativeTo ) "
This function returns the current position of the mouse cursor, relative to the given window.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well yeah that makes sense. But what's the type of the Window needed? Because it might break the abstraction. I'll see tomorrow, but if you want please fix it

MiniEngine::Camera *_camera;
MiniEngine::SceneNode *_node;

bool _hasFocus;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why _hasFocus is here? It's better to have a method in Window for that, don't you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants