Skip to content

Instantly share code, notes, and snippets.

@VictorKoenders
Created April 9, 2016 16:59
Show Gist options
  • Save VictorKoenders/8bb1e7b9c0b44c122d22d3f35962f3ca to your computer and use it in GitHub Desktop.
Save VictorKoenders/8bb1e7b9c0b44c122d22d3f35962f3ca to your computer and use it in GitHub Desktop.
class Person {
private:
float x;
float y
public:
Person(){
EventListener::instance()->registerEvent("buttonPress", "up", &Person::forward, this);
}
forward(){
x++;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment