Hi
I'm encountering a problem.
I want to check if the user presses the left Control (Ctrl) key.
But it ain't working.
This is my code:else if(sf::Keyboard::isKeyPressed(sf::Keyboard::Key::LControl) || sf::Keyboard::isKeyPressed(sf::Keyboard::Key::RControl)) {
//SFML Error
switch(character) {
case 13:
//Send as FIRST!!!
cout << "pressed"<<endl;
break;
}
}
But, what I find weird:
When I replace LControl with "Left", it's working perfectly. It only ain't working with Shift or Alt.
To be more clear, I'm using:
Asus X555LD,
Azerty keyboard-layout,
Windows 8.1,
Visual Studio 2015 Enterprise,
SFML 2.3.2.
It can't be a problem because of if/else-if orders, because I get the exact same result when placing that block on top. So, is this a problem of me, my hardware, or SFML? And how to fix it?
Thanks!