mouse_m908/documentation/how-to-add-a-new-device.md
2021-10-17 17:41:44 +02:00

548 B

How to add support for a new device

This document contains a list of thing that need to be changed or added when adding a new device.

  • New class for the device (mouse_m*) inherited from rd_mouse, copy an existing include/m* directory to get started
  • include/rd_mouse.h
    • class declaration (at the top)
    • mouse_variant typedef
    • #include new header file (at the bottom)
  • makefile
    • Add new m* target
  • CMakeLists.txt
    • Add new files to target_sources
  • documentation:
    • README (supported models)
    • create new config in examples/