diff --git a/README.rst b/README.rst index 2020dffa..dd64ea4c 100644 --- a/README.rst +++ b/README.rst @@ -44,22 +44,18 @@ Supported Devices .. devices-list-start -SteelSeries Aerox 3: - -+--------------------------------------------------------------+-----------+ -| SteelSeries Aerox 3 | 1038:1836 | -+--------------------------------------------------------------+-----------+ - -SteelSeries Aerox 3 Wireless: - -+--------------------------------------------------------------+-----------+ -| SteelSeries Aerox 3 Wireless (wired mode) | 1038:183a | -+--------------------------------------------------------------+-----------+ -| SteelSeries Aerox 3 Wireless (2.4 GHz wireless mode) | 1038:1838 | -+--------------------------------------------------------------+-----------+ - -SteelSeries Aerox 5 Wireless: - ++------------------------------------------------------------------------------------+ +| **SteelSeries Aerox 3** | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Aerox 3 | 1038:1836 | ++------------------------------------------------------------------------+-----------+ +| **SteelSeries Aerox 3 Wireless** | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Aerox 3 Wireless (wired mode) | 1038:183a | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Aerox 3 Wireless (2.4 GHz wireless mode) | 1038:1838 | ++------------------------------------------------------------------------+-----------+ +| **SteelSeries Aerox 5 Wireless** | +------------------------------------------------------------------------+-----------+ | SteelSeries Aerox 5 Wireless (wired mode) | 1038:1854 | +------------------------------------------------------------------------+-----------+ @@ -73,198 +69,158 @@ SteelSeries Aerox 5 Wireless: +------------------------------------------------------------------------+-----------+ | SteelSeries Aerox 5 Wireless Diablo IV Edition (2.4 GHz wireless mode) | 1038:1860 | +------------------------------------------------------------------------+-----------+ - -SteelSeries Aerox 9 Wireless: - -+--------------------------------------------------------------+-----------+ -| SteelSeries Aerox 9 Wireless (wired mode) | 1038:185a | -+--------------------------------------------------------------+-----------+ -| SteelSeries Aerox 9 Wireless (2.4 GHz wireless mode) | 1038:1858 | -+--------------------------------------------------------------+-----------+ - -SteelSeries Kana v2: - -+--------------------------------------------------------------+-----------+ -| SteelSeries Kana v2 | 1038:137a | -+--------------------------------------------------------------+-----------+ - -SteelSeries Kinzu v2: - -+--------------------------------------------------------------+-----------+ -| SteelSeries Kinzu v2 | 1038:1366 | -+--------------------------------------------------------------+-----------+ -| SteelSeries Kinzu v2 | 1038:1378 | -+--------------------------------------------------------------+-----------+ - -SteelSeries Prime: - -+--------------------------------------------------------------+-----------+ -| SteelSeries Prime | 1038:182e | -+--------------------------------------------------------------+-----------+ -| SteelSeries Prime Rainbow 6 Siege Black Ice Edition | 1038:182a | -+--------------------------------------------------------------+-----------+ -| SteelSeries Prime CS:GO Neo Noir Edition | 1038:1856 | -+--------------------------------------------------------------+-----------+ - -SteelSeries Prime Wireless: - -+--------------------------------------------------------------+-----------+ -| SteelSeries Prime Wireless (wired mode) | 1038:1842 | -+--------------------------------------------------------------+-----------+ -| SteelSeries Prime Mini Wireless (wired mode) | 1038:184a | -+--------------------------------------------------------------+-----------+ -| SteelSeries Prime Wireless (2.4 GHz wireless mode) | 1038:1840 | -+--------------------------------------------------------------+-----------+ -| SteelSeries Prime Mini Wireless (2.4 GHz wireless mode) | 1038:1848 | -+--------------------------------------------------------------+-----------+ - -SteelSeries Rival 100 / SteelSeries Rival 105: - -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 100 | 1038:1702 | -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 100 (Dell China) | 1038:170a | -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 100 Dota 2 Edition (retail) | 1038:170b | -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 100 Dota 2 Edition (Lenovo) | 1038:170c | -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 105 | 1038:1814 | -+--------------------------------------------------------------+-----------+ - -SteelSeries Rival 110 / SteelSeries Rival 106: - -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 110 | 1038:1729 | -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 106 | 1038:1816 | -+--------------------------------------------------------------+-----------+ - -SteelSeries Rival 3: - -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 3 | 1038:1824 | -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 3 (firmware v0.37.0.0) | 1038:184c | -+--------------------------------------------------------------+-----------+ - -SteelSeries Rival 300 / SteelSeries Rival: - -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival | 1038:1384 | -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival Dota 2 Edition | 1038:1392 | -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 300 | 1038:1710 | -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 300 Fallout 4 Edition | 1038:1712 | -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 300 Evil Geniuses Edition | 1038:171c | -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 300 CS:GO Fade Edition | 1038:1394 | -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 300 CS:GO Hyper Beast Edition | 1038:171a | -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 300 CS:GO Fade Edition (stm32) | 1038:1716 | -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 300 Acer Predator Edition | 1038:1714 | -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 300 HP OMEN Edition | 1038:1718 | -+--------------------------------------------------------------+-----------+ - -SteelSeries Rival 300S: - -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 300S | 1038:1810 | -+--------------------------------------------------------------+-----------+ - -SteelSeries Rival 310: - -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 310 | 1038:1720 | -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 310 CS:GO Howl Edition | 1038:171e | -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 310 PUBG Edition | 1038:1736 | -+--------------------------------------------------------------+-----------+ - -SteelSeries Rival 3 Wireless: - -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 3 Wireless (2.4 GHz mode) | 1038:1830 | -+--------------------------------------------------------------+-----------+ - -SteelSeries Rival 500: - -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 500 | 1038:170e | -+--------------------------------------------------------------+-----------+ - -SteelSeries Rival 600: - -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 600 | 1038:1724 | -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 600 Dota 2 Edition | 1038:172e | -+--------------------------------------------------------------+-----------+ - -SteelSeries Rival 650 Wireless: - -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 650 Wireless (wired mode) | 1038:172b | -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 650 Wireless (2.4 GHz wireless mode) | 1038:1726 | -+--------------------------------------------------------------+-----------+ - -SteelSeries Rival 700 / SteelSeries Rival 710: - -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 700 | 1038:1700 | -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 710 | 1038:1730 | -+--------------------------------------------------------------+-----------+ - -SteelSeries Rival 95 / SteelSeries Rival 100 PC Bang: - -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 95 | 1038:1706 | -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 95 MSI Edition | 1038:1707 | -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 95 PC Bang | 1038:1704 | -+--------------------------------------------------------------+-----------+ -| SteelSeries Rival 100 PC Bang | 1038:1708 | -+--------------------------------------------------------------+-----------+ - -SteelSeries Sensei 310: - -+--------------------------------------------------------------+-----------+ -| SteelSeries Sensei 310 | 1038:1722 | -+--------------------------------------------------------------+-----------+ - -SteelSeries Sensei [RAW]: - -+--------------------------------------------------------------+-----------+ -| SteelSeries Sensei [RAW] | 1038:1369 | -+--------------------------------------------------------------+-----------+ -| SteelSeries Sensei [RAW] Diablo III Edition | 1038:1362 | -+--------------------------------------------------------------+-----------+ -| SteelSeries Sensei [RAW] Guild Wars 2 Edition | 1038:136d | -+--------------------------------------------------------------+-----------+ -| SteelSeries Sensei [RAW] CoD Black Ops II Edition | 1038:136f | -+--------------------------------------------------------------+-----------+ -| SteelSeries Sensei [RAW] World of Tanks Edition | 1038:1380 | -+--------------------------------------------------------------+-----------+ -| SteelSeries Sensei [RAW] Heroes of the Storm Edition | 1038:1390 | -+--------------------------------------------------------------+-----------+ - -SteelSeries Sensei TEN: - -+--------------------------------------------------------------+-----------+ -| SteelSeries Sensei TEN | 1038:1832 | -+--------------------------------------------------------------+-----------+ -| SteelSeries Sensei TEN CS:GO Neon Rider Edition | 1038:1834 | -+--------------------------------------------------------------+-----------+ +| **SteelSeries Aerox 9 Wireless** | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Aerox 9 Wireless (wired mode) | 1038:185a | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Aerox 9 Wireless (2.4 GHz wireless mode) | 1038:1858 | ++------------------------------------------------------------------------+-----------+ +| **SteelSeries Kana v2** | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Kana v2 | 1038:137a | ++------------------------------------------------------------------------+-----------+ +| **SteelSeries Kinzu v2** | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Kinzu v2 | 1038:1366 | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Kinzu v2 | 1038:1378 | ++------------------------------------------------------------------------+-----------+ +| **SteelSeries Prime** | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Prime | 1038:182e | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Prime Rainbow 6 Siege Black Ice Edition | 1038:182a | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Prime CS:GO Neo Noir Edition | 1038:1856 | ++------------------------------------------------------------------------+-----------+ +| **SteelSeries Prime Wireless** | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Prime Wireless (wired mode) | 1038:1842 | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Prime Mini Wireless (wired mode) | 1038:184a | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Prime Wireless (2.4 GHz wireless mode) | 1038:1840 | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Prime Mini Wireless (2.4 GHz wireless mode) | 1038:1848 | ++------------------------------------------------------------------------+-----------+ +| **SteelSeries Rival 100 / SteelSeries Rival 105** | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 100 | 1038:1702 | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 100 (Dell China) | 1038:170a | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 100 Dota 2 Edition (retail) | 1038:170b | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 100 Dota 2 Edition (Lenovo) | 1038:170c | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 105 | 1038:1814 | ++------------------------------------------------------------------------+-----------+ +| **SteelSeries Rival 110 / SteelSeries Rival 106** | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 110 | 1038:1729 | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 106 | 1038:1816 | ++------------------------------------------------------------------------+-----------+ +| **SteelSeries Rival 3** | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 3 | 1038:1824 | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 3 (firmware v0.37.0.0) | 1038:184c | ++------------------------------------------------------------------------+-----------+ +| **SteelSeries Rival 300 / SteelSeries Rival** | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival | 1038:1384 | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival Dota 2 Edition | 1038:1392 | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 300 | 1038:1710 | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 300 Fallout 4 Edition | 1038:1712 | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 300 Evil Geniuses Edition | 1038:171c | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 300 CS:GO Fade Edition | 1038:1394 | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 300 CS:GO Hyper Beast Edition | 1038:171a | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 300 CS:GO Fade Edition (stm32) | 1038:1716 | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 300 Acer Predator Edition | 1038:1714 | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 300 HP OMEN Edition | 1038:1718 | ++------------------------------------------------------------------------+-----------+ +| **SteelSeries Rival 300S** | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 300S | 1038:1810 | ++------------------------------------------------------------------------+-----------+ +| **SteelSeries Rival 310** | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 310 | 1038:1720 | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 310 CS:GO Howl Edition | 1038:171e | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 310 PUBG Edition | 1038:1736 | ++------------------------------------------------------------------------+-----------+ +| **SteelSeries Rival 3 Wireless** | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 3 Wireless (2.4 GHz mode) | 1038:1830 | ++------------------------------------------------------------------------+-----------+ +| **SteelSeries Rival 500** | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 500 | 1038:170e | ++------------------------------------------------------------------------+-----------+ +| **SteelSeries Rival 600** | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 600 | 1038:1724 | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 600 Dota 2 Edition | 1038:172e | ++------------------------------------------------------------------------+-----------+ +| **SteelSeries Rival 650 Wireless** | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 650 Wireless (wired mode) | 1038:172b | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 650 Wireless (2.4 GHz wireless mode) | 1038:1726 | ++------------------------------------------------------------------------+-----------+ +| **SteelSeries Rival 700 / SteelSeries Rival 710** | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 700 | 1038:1700 | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 710 | 1038:1730 | ++------------------------------------------------------------------------+-----------+ +| **SteelSeries Rival 95 / SteelSeries Rival 100 PC Bang** | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 95 | 1038:1706 | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 95 MSI Edition | 1038:1707 | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 95 PC Bang | 1038:1704 | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Rival 100 PC Bang | 1038:1708 | ++------------------------------------------------------------------------+-----------+ +| **SteelSeries Sensei 310** | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Sensei 310 | 1038:1722 | ++------------------------------------------------------------------------+-----------+ +| **SteelSeries Sensei [RAW]** | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Sensei [RAW] | 1038:1369 | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Sensei [RAW] Diablo III Edition | 1038:1362 | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Sensei [RAW] Guild Wars 2 Edition | 1038:136d | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Sensei [RAW] CoD Black Ops II Edition | 1038:136f | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Sensei [RAW] World of Tanks Edition | 1038:1380 | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Sensei [RAW] Heroes of the Storm Edition | 1038:1390 | ++------------------------------------------------------------------------+-----------+ +| **SteelSeries Sensei TEN** | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Sensei TEN | 1038:1832 | ++------------------------------------------------------------------------+-----------+ +| SteelSeries Sensei TEN CS:GO Neon Rider Edition | 1038:1834 | ++------------------------------------------------------------------------+-----------+ .. devices-list-end diff --git a/scripts/update_readme_devices.py b/scripts/update_readme_devices.py index 7ff7825e..d4ab81f6 100755 --- a/scripts/update_readme_devices.py +++ b/scripts/update_readme_devices.py @@ -6,25 +6,29 @@ def list_devices(): + last_profile_name = "" result = "" + result += "\n+%s+\n" % ("-" * 84) for item in [getattr(devices, name) for name in dir(devices)]: if not isinstance(item, types.ModuleType): continue if not hasattr(item, "profile"): continue - result += "\n%s:\n\n" % item.profile["name"] - result += "+%s+%s+\n" % ( - "-" * 62, - "-" * 11, - ) + if item.profile["name"] != last_profile_name: + result += "| %-82s |\n" % ("**%s**" % item.profile["name"]) + result += "+%s+%s+\n" % ( + "-" * 72, + "-" * 11, + ) + last_profile_name = item.profile["name"] for model in item.profile["models"]: - result += "| %-60s | %04x:%04x |\n" % ( + result += "| %-70s | %04x:%04x |\n" % ( model["name"], model["vendor_id"], model["product_id"], ) result += "+%s+%s+\n" % ( - "-" * 62, + "-" * 72, "-" * 11, ) return result