Created
          February 10, 2013 15:29 
        
      - 
      
- 
        Save Groogy/4749937 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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