Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - sfml_noob

Pages: [1]
1
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;
                }
 

2
the mouse pointer isn't working for me (the click is detected in the game though but on the menu I can't click the title menu).
I'm on Firefox.

Keyboard works though

3
I've found a thread about this problem (unrelated to SFML: it's "Juce", a cross-platform music software).
Maybe it can help...
https://forum.juce.com/t/keypad-enter-key-doesnt-work-like-enter-key/10965/3

4
Thanks for the reply!
I'm on Arch linux. The compiler is g++ 10.2.0.

5
Window / Enter key from Numpad not working (contrary to "main" Enter key)
« on: November 17, 2020, 06:56:13 pm »
Hi!
I'm following the book "Beginning C++ Game Programming" from John Horton.
One of the first project uses the Enter key:

// Start the game
if (Keyboard::isKeyPressed(Keyboard::Enter))
{
...
}
It's working with the central Enter key, but I'm surprised that pressing the right Enter key (the one with the numpad) does nothing.
Is it possible to get the Numpad Enter key working?
Thanks!

Pages: [1]
anything