[hid-buttons] Refactor notifiers

Update the notifiers so that they rely on ButtonTypes
and are mapped by ButtonTypes. The notifiers are
listening to ButtonTypes via the FIDL API, so they
shouldn't be organized by BUTTON_IDS_

This has the added benefit of using the type system
more to make it clearer which ID's belong to what.

Bug: 36834
TEST: fx test hid-buttons-test

Change-Id: I7508c52fc7aa9eb500169f94b552232e59cf5183
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/442199
Commit-Queue: David Gilhooley <dgilhooley@google.com>
Reviewed-by: Ruby Zhuang <rdzhuang@google.com>
Testability-Review: Ruby Zhuang <rdzhuang@google.com>
2 files changed
tree: c04c0f23eae6e719186bef1f8d4ec8fad6115bea
  1. boards/
  2. build/
  3. bundles/
  4. docs/
  5. examples/
  6. garnet/
  7. products/
  8. scripts/
  9. sdk/
  10. src/
  11. third_party/
  12. tools/
  13. zircon/
  14. .clang-format
  15. .clang-tidy
  16. .gitattributes
  17. .gitignore
  18. .gn
  19. .style.yapf
  20. AUTHORS
  21. BUILD.gn
  22. CODE_OF_CONDUCT.md
  23. CONTRIBUTING.md
  24. LICENSE
  25. OWNERS
  26. PATENTS
  27. README.md
  28. rustfmt.toml
README.md

Fuchsia

Pink + Purple == Fuchsia (a new operating system)

What is Fuchsia?

Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.

Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.

Read more about Fuchsia's principles.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.