Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command Pattern bindings #388

Open
crcdng opened this issue Jan 29, 2025 · 0 comments
Open

Command Pattern bindings #388

crcdng opened this issue Jan 29, 2025 · 0 comments

Comments

@crcdng
Copy link

crcdng commented Jan 29, 2025

I'm a bit confused about the command pattern implementation.

In the 'input handler code snippet, the command binding is hinted at:

// Methods to bind commands...

private:
  Command* buttonX_;
  Command* buttonY_;
  Command* buttonA_;
  Command* buttonB_;

I think here it would be helpful to show the actual code for the bindings. Because the purpose of the pattern is to enable the re-binding of buttons, it would be useful to show a binding and re-binding in the example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant