Hello all, this will be my first post here. I'm trying to get my keyboard input working properly, and I ran into a problem with the dash/underscore key. I've downloaded 2.3.2 and I'm pretty sure I have it installed in the right location, but I'm still getting a problem with the dash/underscore key. I wrote a little test, the "A" and "=" are working, but not dash:
#include <iostream>
#include <SFML/Audio.hpp>
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
int main(){
while (true){
if(sf::Keyboard::isKeyPressed(sf::Keyboard::A)){//1
std::cout << "aA\n";
}
if(sf::Keyboard::isKeyPressed(sf::Keyboard::Dash)){// error???
std::cout << "-dash-\n";
}
if(sf::Keyboard::isKeyPressed(sf::Keyboard::Subtract)){// error???
std::cout << "-minus-\n";
}
if(sf::Keyboard::isKeyPressed(sf::Keyboard::Equal)){
std::cout << "=\n";
}
}
return 0;
}
I'm using a macbook pro with yosemite, and no extended keyboard, I hope that makes it clear.