1
Window / Re: Enter key from Numpad not working (contrary to "main" Enter key)
« on: November 19, 2020, 02:59:37 pm »
I'm more advanced in the book. Now I've found that with another method, both Enter keys are detected!
while (window.pollEvent(event))
{
if (event.type == Event::KeyPressed)
{
// Pause a game while playing
if (event.key.code == Keyboard::Return && state == State::PLAYING)
{
state = State::PAUSED;
}
while (window.pollEvent(event))
{
if (event.type == Event::KeyPressed)
{
// Pause a game while playing
if (event.key.code == Keyboard::Return && state == State::PLAYING)
{
state = State::PAUSED;
}