Skip to content

Instantly share code, notes, and snippets.

@Groogy
Created February 10, 2013 15:29
Show Gist options
  • Save Groogy/4749937 to your computer and use it in GitHub Desktop.
Save Groogy/4749937 to your computer and use it in GitHub Desktop.
action = [](SceneNode& node) {
GUI::Button* button = dynamic_cast<GUI::Button*>(&node);
button->select();
};
category = selectedButton->getID();
// What I will probably do instead something like:
if(sf::Keyboard::isKeyPressed(sf::Keyboard::Enter))
mySelectedButton->activate();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment