SFML community forums

Help => Window => Topic started by: Wolf on June 23, 2015, 02:50:31 pm

Title: Problems regarding keyboard input
Post by: Wolf on June 23, 2015, 02:50:31 pm
I've run into a few problems regarding detecting keyboard input via the KeyPressed event.
I'm using Linux, Xubuntu 14.04, with IBus for multilingual input.
Title: Re: Problems regarding keyboard input
Post by: binary1248 on June 23, 2015, 04:30:08 pm
On the international English keyboard layout, that uses AltGr (the right Alt key) to input non-English characters (such as 'ä', 'å', etc), the right Alt key is detected as sf::Keyboard::Unknown rather than sf::Keyboard::RAlt. However, this works fine on the standard US layout.
Will have to look into this.
The numpad number keys do not work regardless of the keyboard layout, whether num lock is enabled or not. They all return sf::Keyboard::Unknown.
#910 (https://github.com/SFML/SFML/pull/910)
Switching between keyboard layouts while the game is open does not work, and trying to do so produces the following output (only once):
#895 (https://github.com/SFML/SFML/issues/895), #897 (https://github.com/SFML/SFML/pull/897)
On layouts that use scripts other than Latin (such as Greek, Ukrainian, etc) any letter keys return sf::Keyboard::Unknown, while in my opinion they should return the keys corresponding to the US layout. For example pressing the 'ц' key on the Ukrainian layout should return sf::Keyboard::W, because the 'ц' key is located at the same key as the US 'w'.
#7 (https://github.com/SFML/SFML/issues/7), http://en.sfml-dev.org/forums/index.php?topic=13692.0
Title: Re: Problems regarding keyboard input
Post by: binary1248 on July 14, 2015, 02:08:11 pm
The issue with sf::Keyboard::RAlt should be fixed in #922 (https://github.com/SFML/SFML/pull/922).