Still nothing.
I also tried like this:
MSG Message;
bool lol = false;
Message.message = static_cast<UINT>(~WM_QUIT);
while (Message.message != WM_QUIT)
{
if (PeekMessage(&Message, NULL, 0, 0, PM_REMOVE))
{
// If a message was waiting in the message queue, process it
TranslateMessage(&Message);
DispatchMessage(&Message);
}
else
{
sf::Event Event;
while(SFMLView.GetEvent(Event))
{
if( Event.Key.Code == sf::Key::A ) lol = true;
}
// SFML
SFMLView.Clear(sf::Color::Yellow);
if(lol == true)SFMLView.Draw(sf::Shape::Circle(30,30,30,sf::Color::Blue));
//SFMLView.Draw(sf::Shape::Circle(Message.pt.x,Message.pt.y,30,sf::Color::Cyan));
SFMLView.Draw(sf::Shape::Circle(20,20,30,sf::Color::Cyan));
SFMLView.Display();
}
}
But it doesn't work too.
To be honest it work, but not when I press "A", but when i move mouse a lot. It's kinda bug.
/EDIT
I also found an issue while using Event.Key.Code == sf::something. When i move my mouse it can activate without pressing key I need. It happened in other game too.