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 - Falcord

Pages: [1]
1
Thank you!

Yes, it appears it is a hardware issue. I changed the game bindings to WASD and it works like a charm. Now I can keep working without turning my code sideways again and again =P

2
OS: Ubuntu 12.04, compiling with GCC, no other libraries used except for SFML 1.6.

I'm working on a small game and I've come to find a strange problem:

[...]GetInput().IsKeyDown(sf::Key::Space) will return True normally if I press space, but it will NOT if I'm pressing either the UP and LEFT arrow keys at once, DOWN and LEFT, or DOWN and RIGHT.

This surprisingly specific problem doesn't happen if I'm pressing UP and RIGHT, or any of the arrow keys by themselves. I am certain there isn't anything in my source code causing it, as I've isolated the problem to a very small expression.

In fact, if I use another key (such as the letter J) instead of Space, it works just fine in all directions.

Do you have any idea why the Space key is behaving in such a strange way? Could that be an ubuntu-specific issue? Thank you very much for your insight.

Pages: [1]
anything