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

Pages: 1 2 3 [4]
46
sorry for the confusion

47
hyphen(dash) still seams not to work, I've downloaded version 2.3.2, and placed frameworks and dependencies in /Library/Frameworks. I'm still having the problem with dash. any ideas? I've test the whole alphabet and numbers, and this is the only key that doesn't work. are any other mac users having this problem?

48
Window / [Mac]sf::Keyboard::isKeyPressed(sf::Keyboard::Dash) not responding
« on: September 22, 2015, 10:28:26 pm »
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.

Pages: 1 2 3 [4]
anything