From 223b33f4cc77f220e8bb111f138be014b881a064 Mon Sep 17 00:00:00 2001
From: dokutan <54861821+dokutan@users.noreply.github.com>
Date: Sat, 11 Sep 2021 17:17:50 +0200
Subject: [PATCH] Add M909 PID to the generic backend

---
 README.md                | 1 +
 include/generic/data.cpp | 1 +
 2 files changed, 2 insertions(+)

diff --git a/README.md b/README.md
index 7ed3069..d613909 100644
--- a/README.md
+++ b/README.md
@@ -47,6 +47,7 @@ Redragon M715 Dagger | experimental | 0x04d9:0xfc39 | Nothing is tested<br>- The
 Redragon M721-Pro Lonewolf2 | experimental | 0x04d9:0xfc5c | See [this issue](https://github.com/dokutan/mouse_m908/issues/22)<br>Nothing is tested
 Redragon M990 Legend | experimental | 0x04d9:0xfc0f | See [this issue](https://github.com/dokutan/mouse_m908/issues/5)<br>This mouse uses a different data format, keycodes, etc.
 Redragon M990 Legend (RGB/Chroma) | experimental | 0x04d9:0xfc41 | - Changing the profile works<br>- Reading the settings works partially
+Redragon M909 Emperor | generic | 0x04d9:0xfc42 | [please read this](#generic-support)
 Redragon M802 Titanoboa 2 | generic | 0x04d9:0xfc42 | [please read this](#generic-support)
 Redragon 2858 (?) | generic | 0x04d9:0xfc5e | [please read this](#generic-support)
 Redragon 2805 (?) | generic | 0x04d9:0xfc58 | [please read this](#generic-support)
diff --git a/include/generic/data.cpp b/include/generic/data.cpp
index decfa53..feac379 100644
--- a/include/generic/data.cpp
+++ b/include/generic/data.cpp
@@ -39,6 +39,7 @@ std::set< uint16_t > mouse_generic::_c_all_pids = {
 	0xfc41, // M990 Legend Chroma/RGB
 	0xfc42, // M802 Titanoboa 2
 	0xfc49, // M910 Ranger
+	0xfc4c, // M909 Emperor
 	0xfc4d, // M908 Impact
 	0xfc4f, // M719 Invader
 	0xfc56, // M801 Mammoth (RGB?, there is an incompatible version with PID 0xfa56)