Skip to content

Command Pattern bindings #388

Open
Open
@crcdng

Description

@crcdng

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions