| 1 |
# SPDX-License-Identifier: GPL-2.0-or-later |
| 2 |
|
| 3 |
""" |
| 4 |
Mouse class |
| 5 |
""" |
| 6 |
import re |
| 7 |
from openrazer_daemon.hardware.device_base import RazerDeviceBrightnessSuspend as __RazerDeviceBrightnessSuspend, RazerDevice as __RazerDevice |
| 8 |
|
| 9 |
|
| 10 |
class RazerViperMini(__RazerDevice): |
| 11 |
""" |
| 12 |
Class for the Razer Viper Mini |
| 13 |
""" |
| 14 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Razer_Viper_Mini-if0(1|2)-event-kbd') |
| 15 |
|
| 16 |
USB_VID = 0x1532 |
| 17 |
USB_PID = 0x008A |
| 18 |
HAS_MATRIX = True |
| 19 |
MATRIX_DIMS = [1, 1] |
| 20 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', 'get_poll_rate', 'set_poll_rate', 'get_logo_brightness', 'set_logo_brightness', |
| 21 |
# Underglow/Logo use LOGO_LED |
| 22 |
'set_logo_static', 'set_logo_spectrum', 'set_logo_none', 'set_logo_reactive', |
| 23 |
'set_logo_breath_random', 'set_logo_breath_single', 'set_logo_breath_dual', |
| 24 |
# Custom frame |
| 25 |
'set_custom_effect', 'set_key_row'] |
| 26 |
|
| 27 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/1634/vipermini.png" |
| 28 |
|
| 29 |
DPI_MAX = 8500 |
| 30 |
|
| 31 |
|
| 32 |
class RazerLanceheadWirelessWired(__RazerDevice): |
| 33 |
""" |
| 34 |
Class for the Razer Lancehead Wireless (Wired) |
| 35 |
""" |
| 36 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Lancehead_Wireless-if0(1|2)-event-kbd') |
| 37 |
|
| 38 |
USB_VID = 0x1532 |
| 39 |
USB_PID = 0x0070 |
| 40 |
HAS_MATRIX = True |
| 41 |
WAVE_DIRS = (1, 2) |
| 42 |
MATRIX_DIMS = [1, 16] |
| 43 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', 'get_poll_rate', 'set_poll_rate', 'get_logo_brightness', 'set_logo_brightness', 'get_scroll_brightness', 'set_scroll_brightness', |
| 44 |
'get_left_brightness', 'set_left_brightness', 'get_right_brightness', 'set_right_brightness', |
| 45 |
# Battery |
| 46 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold', |
| 47 |
# Logo |
| 48 |
'set_logo_wave', 'set_logo_static', 'set_logo_spectrum', 'set_logo_none', 'set_logo_reactive', 'set_logo_breath_random', 'set_logo_breath_single', 'set_logo_breath_dual', |
| 49 |
# Scroll wheel |
| 50 |
'set_scroll_wave', 'set_scroll_static', 'set_scroll_spectrum', 'set_scroll_none', 'set_scroll_reactive', 'set_scroll_breath_random', 'set_scroll_breath_single', 'set_scroll_breath_dual', |
| 51 |
# Left side |
| 52 |
'set_left_wave', 'set_left_static', 'set_left_spectrum', 'set_left_none', 'set_left_reactive', 'set_left_breath_random', 'set_left_breath_single', 'set_left_breath_dual', |
| 53 |
# Right side |
| 54 |
'set_right_wave', 'set_right_static', 'set_right_spectrum', 'set_right_none', 'set_right_reactive', 'set_right_breath_random', 'set_right_breath_single', 'set_right_breath_dual', |
| 55 |
# Can set LOGO and Scroll with custom |
| 56 |
'set_custom_effect', 'set_key_row'] |
| 57 |
|
| 58 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/1205/1205_lancehead.png" |
| 59 |
|
| 60 |
DPI_MAX = 16000 |
| 61 |
|
| 62 |
|
| 63 |
class RazerLanceheadWirelessReceiver(RazerLanceheadWirelessWired): |
| 64 |
""" |
| 65 |
Class for the Razer Lancehead Wireless (Receiver) |
| 66 |
""" |
| 67 |
USB_PID = 0x006F |
| 68 |
METHODS = RazerLanceheadWirelessWired.METHODS + ['set_charge_effect', 'set_charge_colour'] |
| 69 |
|
| 70 |
|
| 71 |
class RazerLanceheadWired(__RazerDevice): |
| 72 |
""" |
| 73 |
Class for the Razer Lancehead (Wired) |
| 74 |
""" |
| 75 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Lancehead-if0(1|2)-event-kbd') |
| 76 |
|
| 77 |
USB_VID = 0x1532 |
| 78 |
USB_PID = 0x0059 |
| 79 |
HAS_MATRIX = True |
| 80 |
WAVE_DIRS = (1, 2) |
| 81 |
MATRIX_DIMS = [1, 16] |
| 82 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', 'get_poll_rate', 'set_poll_rate', 'get_logo_brightness', 'set_logo_brightness', 'get_scroll_brightness', 'set_scroll_brightness', |
| 83 |
'get_left_brightness', 'set_left_brightness', 'get_right_brightness', 'set_right_brightness', |
| 84 |
# Battery |
| 85 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold', |
| 86 |
# Logo |
| 87 |
'set_logo_wave', 'set_logo_static', 'set_logo_spectrum', 'set_logo_none', 'set_logo_reactive', 'set_logo_breath_random', 'set_logo_breath_single', 'set_logo_breath_dual', |
| 88 |
# Scroll wheel |
| 89 |
'set_scroll_wave', 'set_scroll_static', 'set_scroll_spectrum', 'set_scroll_none', 'set_scroll_reactive', 'set_scroll_breath_random', 'set_scroll_breath_single', 'set_scroll_breath_dual', |
| 90 |
# Left side |
| 91 |
'set_left_wave', 'set_left_static', 'set_left_spectrum', 'set_left_none', 'set_left_reactive', 'set_left_breath_random', 'set_left_breath_single', 'set_left_breath_dual', |
| 92 |
# Right side |
| 93 |
'set_right_wave', 'set_right_static', 'set_right_spectrum', 'set_right_none', 'set_right_reactive', 'set_right_breath_random', 'set_right_breath_single', 'set_right_breath_dual', |
| 94 |
# Can set LOGO and Scroll with custom |
| 95 |
'set_custom_effect', 'set_key_row'] |
| 96 |
|
| 97 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/1205/1205_lancehead.png" |
| 98 |
|
| 99 |
DPI_MAX = 16000 |
| 100 |
|
| 101 |
|
| 102 |
class RazerLanceheadWireless(RazerLanceheadWired): |
| 103 |
""" |
| 104 |
Class for the Razer Lancehead (Wireless) |
| 105 |
""" |
| 106 |
USB_PID = 0x005A |
| 107 |
METHODS = RazerLanceheadWired.METHODS + ['set_charge_effect', 'set_charge_colour'] |
| 108 |
|
| 109 |
|
| 110 |
class RazerDeathAdderEssentialWhiteEdition(__RazerDevice): |
| 111 |
""" |
| 112 |
Class for the Razer DeathAdder Essential (White Edition) |
| 113 |
""" |
| 114 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Razer_DeathAdder_Essential_White_Edition-if0(1|2)-event-kbd') |
| 115 |
|
| 116 |
USB_VID = 0x1532 |
| 117 |
USB_PID = 0x0071 |
| 118 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', |
| 119 |
'get_poll_rate', 'set_poll_rate', |
| 120 |
'get_logo_brightness', 'set_logo_brightness', |
| 121 |
'get_scroll_brightness', 'set_scroll_brightness', |
| 122 |
# Logo |
| 123 |
'set_logo_static', 'set_logo_none', 'set_logo_breath_single', |
| 124 |
# Scroll wheel |
| 125 |
'set_scroll_static', 'set_scroll_none', 'set_scroll_breath_single'] |
| 126 |
|
| 127 |
DEVICE_IMAGE = "https://assets2.razerzone.com/images/da10m/carousel/razer-death-adder-gallery-25.png" |
| 128 |
|
| 129 |
DPI_MAX = 6400 |
| 130 |
|
| 131 |
|
| 132 |
class RazerAbyssusEliteDVaEdition(__RazerDevice): |
| 133 |
""" |
| 134 |
Class for the Razer Abyssus Elite (D.Va Edition) |
| 135 |
""" |
| 136 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_D.Va_Razer_Abyssus_Elite-if0(1|2)-event-kbd') |
| 137 |
|
| 138 |
USB_VID = 0x1532 |
| 139 |
USB_PID = 0x006A |
| 140 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', |
| 141 |
'get_poll_rate', 'set_poll_rate', |
| 142 |
'get_logo_brightness', 'set_logo_brightness', |
| 143 |
# Underglow/Logo use LOGO_LED |
| 144 |
'set_logo_static', 'set_logo_spectrum', 'set_logo_none', 'set_logo_reactive', |
| 145 |
'set_logo_breath_random', 'set_logo_breath_single', 'set_logo_breath_dual'] |
| 146 |
|
| 147 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/1288/d.va_abyssus_elite.png" |
| 148 |
|
| 149 |
DPI_MAX = 7200 |
| 150 |
|
| 151 |
|
| 152 |
class RazerAbyssusEssential(__RazerDevice): |
| 153 |
""" |
| 154 |
Class for the Razer Abyssus Essential |
| 155 |
""" |
| 156 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Razer_Abyssus_Essential-if0(1|2)-event-kbd') |
| 157 |
|
| 158 |
USB_VID = 0x1532 |
| 159 |
USB_PID = 0x006B |
| 160 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', |
| 161 |
'get_poll_rate', 'set_poll_rate', |
| 162 |
'get_logo_brightness', 'set_logo_brightness', |
| 163 |
# Backlight/Logo...same |
| 164 |
'set_logo_static', 'set_logo_spectrum', 'set_logo_none', 'set_logo_reactive', |
| 165 |
'set_logo_breath_random', 'set_logo_breath_single', 'set_logo_breath_dual'] |
| 166 |
|
| 167 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/1290/1290_abyssusessential.png" |
| 168 |
|
| 169 |
DPI_MAX = 7200 |
| 170 |
|
| 171 |
|
| 172 |
class RazerLanceheadTE(__RazerDevice): |
| 173 |
""" |
| 174 |
Class for the Razer Lancehead Tournament Edition |
| 175 |
""" |
| 176 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Lancehead_TE-if0(1|2)-event-kbd') |
| 177 |
|
| 178 |
USB_VID = 0x1532 |
| 179 |
USB_PID = 0x0060 |
| 180 |
HAS_MATRIX = True |
| 181 |
WAVE_DIRS = (1, 2) |
| 182 |
MATRIX_DIMS = [1, 16] |
| 183 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', 'get_poll_rate', 'set_poll_rate', 'get_logo_brightness', 'set_logo_brightness', 'get_scroll_brightness', 'set_scroll_brightness', |
| 184 |
'get_left_brightness', 'set_left_brightness', 'get_right_brightness', 'set_right_brightness', |
| 185 |
# Logo |
| 186 |
'set_logo_wave', 'set_logo_static', 'set_logo_spectrum', 'set_logo_none', 'set_logo_reactive', 'set_logo_breath_random', 'set_logo_breath_single', 'set_logo_breath_dual', |
| 187 |
# Scroll wheel |
| 188 |
'set_scroll_wave', 'set_scroll_static', 'set_scroll_spectrum', 'set_scroll_none', 'set_scroll_reactive', 'set_scroll_breath_random', 'set_scroll_breath_single', 'set_scroll_breath_dual', |
| 189 |
# Left side |
| 190 |
'set_left_wave', 'set_left_static', 'set_left_spectrum', 'set_left_none', 'set_left_reactive', 'set_left_breath_random', 'set_left_breath_single', 'set_left_breath_dual', |
| 191 |
# Right side |
| 192 |
'set_right_wave', 'set_right_static', 'set_right_spectrum', 'set_right_none', 'set_right_reactive', 'set_right_breath_random', 'set_right_breath_single', 'set_right_breath_dual', |
| 193 |
# Can set LOGO and Scroll with custom |
| 194 |
'set_custom_effect', 'set_key_row'] |
| 195 |
|
| 196 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/1203/1206_lanceheadte.png" |
| 197 |
|
| 198 |
DPI_MAX = 16000 |
| 199 |
|
| 200 |
|
| 201 |
class RazerMambaChromaWireless(__RazerDeviceBrightnessSuspend): |
| 202 |
""" |
| 203 |
Class for the Razer Mamba Chroma (Wireless) |
| 204 |
""" |
| 205 |
USB_VID = 0x1532 |
| 206 |
USB_PID = 0x0045 |
| 207 |
HAS_MATRIX = True |
| 208 |
MATRIX_DIMS = [1, 15] |
| 209 |
METHODS = ['get_device_type_mouse', 'get_battery', 'is_charging', 'set_backlight_wave', |
| 210 |
'set_backlight_static', 'set_backlight_spectrum', 'set_backlight_reactive', 'set_backlight_none', 'set_backlight_breath_random', |
| 211 |
'set_backlight_breath_single', 'set_backlight_breath_dual', 'set_custom_effect', 'set_key_row', |
| 212 |
'set_charge_effect', 'set_charge_colour', |
| 213 |
'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold', |
| 214 |
'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate'] |
| 215 |
|
| 216 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/609/609_mamba_500x500.png" |
| 217 |
|
| 218 |
DPI_MAX = 16000 |
| 219 |
|
| 220 |
|
| 221 |
class RazerMambaChromaWired(__RazerDeviceBrightnessSuspend): |
| 222 |
""" |
| 223 |
Class for the Razer Mamba Chroma (Wired) |
| 224 |
""" |
| 225 |
USB_VID = 0x1532 |
| 226 |
USB_PID = 0x0044 |
| 227 |
HAS_MATRIX = True |
| 228 |
MATRIX_DIMS = [1, 15] |
| 229 |
METHODS = ['get_device_type_mouse', 'set_backlight_wave', |
| 230 |
'set_backlight_static', 'set_backlight_spectrum', 'set_backlight_reactive', 'set_backlight_none', 'set_backlight_breath_random', |
| 231 |
'set_backlight_breath_single', 'set_backlight_breath_dual', 'set_custom_effect', 'set_key_row', 'max_dpi', |
| 232 |
'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate', |
| 233 |
'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold', 'get_battery', 'is_charging'] |
| 234 |
|
| 235 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/609/609_mamba_500x500.png" |
| 236 |
|
| 237 |
DPI_MAX = 16000 |
| 238 |
|
| 239 |
|
| 240 |
class RazerMambaTE(__RazerDevice): |
| 241 |
""" |
| 242 |
Class for the Razer Mamba Tournament Edition |
| 243 |
""" |
| 244 |
USB_VID = 0x1532 |
| 245 |
USB_PID = 0x0046 |
| 246 |
HAS_MATRIX = True |
| 247 |
MATRIX_DIMS = [1, 16] |
| 248 |
METHODS = ['get_device_type_mouse', 'get_backlight_brightness', 'set_backlight_brightness', 'set_backlight_wave', |
| 249 |
'set_backlight_static', 'set_backlight_spectrum', 'set_backlight_reactive', 'set_backlight_none', 'set_backlight_breath_random', |
| 250 |
'set_backlight_breath_single', 'set_backlight_breath_dual', 'set_custom_effect', 'set_key_row', 'max_dpi', |
| 251 |
'get_dpi_xy', 'set_dpi_xy'] |
| 252 |
|
| 253 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/606/606_mambate_500x500.png" |
| 254 |
|
| 255 |
DPI_MAX = 16000 |
| 256 |
|
| 257 |
|
| 258 |
class RazerAbyssus(__RazerDevice): |
| 259 |
""" |
| 260 |
Class for the Razer Abyssus |
| 261 |
""" |
| 262 |
USB_VID = 0x1532 |
| 263 |
USB_PID = 0x0042 |
| 264 |
METHODS = ['get_device_type_mouse', 'set_logo_none', 'set_logo_on', 'get_poll_rate', 'set_poll_rate'] |
| 265 |
|
| 266 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/274/abyssus2014_500x500.png" |
| 267 |
|
| 268 |
|
| 269 |
class RazerImperator(__RazerDevice): |
| 270 |
""" |
| 271 |
Class for the Razer Imperator 2012 |
| 272 |
""" |
| 273 |
USB_VID = 0x1532 |
| 274 |
USB_PID = 0x002F |
| 275 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate', |
| 276 |
'set_logo_none', 'set_logo_on', 'set_scroll_none', 'set_scroll_on'] |
| 277 |
|
| 278 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/215/215_imperator.png" |
| 279 |
|
| 280 |
DPI_MAX = 6400 |
| 281 |
|
| 282 |
|
| 283 |
class RazerOuroboros(__RazerDevice): |
| 284 |
""" |
| 285 |
Class for the Razer Ouroboros |
| 286 |
""" |
| 287 |
USB_VID = 0x1532 |
| 288 |
USB_PID = 0x0032 |
| 289 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', |
| 290 |
'get_poll_rate', 'set_poll_rate', 'set_scroll_none', 'set_scroll_on', 'get_scroll_brightness', 'set_scroll_brightness', |
| 291 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold'] |
| 292 |
|
| 293 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/26/26_ouroboros.png" |
| 294 |
|
| 295 |
DPI_MAX = 8200 |
| 296 |
|
| 297 |
|
| 298 |
class RazerOrochi2013(__RazerDevice): |
| 299 |
""" |
| 300 |
Class for the Razer Orochi 2013 |
| 301 |
""" |
| 302 |
USB_VID = 0x1532 |
| 303 |
USB_PID = 0x0039 |
| 304 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', |
| 305 |
'get_poll_rate', 'set_poll_rate', 'set_scroll_none', 'set_scroll_on'] |
| 306 |
|
| 307 |
DPI_MAX = 6400 |
| 308 |
|
| 309 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/612/612_orochi_2015.png" |
| 310 |
|
| 311 |
|
| 312 |
class RazerOrochiWired(__RazerDevice): |
| 313 |
""" |
| 314 |
Class for the Razer Orochi (Wired) |
| 315 |
""" |
| 316 |
USB_VID = 0x1532 |
| 317 |
USB_PID = 0x0048 |
| 318 |
METHODS = ['get_device_type_mouse', |
| 319 |
'get_scroll_brightness', 'set_scroll_brightness', 'set_scroll_none', 'set_scroll_on', |
| 320 |
'set_backlight_static', 'set_backlight_spectrum', 'set_backlight_reactive', 'set_backlight_none', 'set_backlight_breath_random', |
| 321 |
'set_backlight_breath_single', 'set_backlight_breath_dual', |
| 322 |
'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold', |
| 323 |
'max_dpi', 'get_dpi_xy', 'set_dpi_xy', |
| 324 |
'get_poll_rate', 'set_poll_rate'] |
| 325 |
|
| 326 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/612/612_orochi_2015.png" |
| 327 |
|
| 328 |
DPI_MAX = 8200 |
| 329 |
|
| 330 |
|
| 331 |
class RazerDeathAdderChroma(__RazerDevice): |
| 332 |
""" |
| 333 |
Class for the Razer DeathAdder Chroma |
| 334 |
""" |
| 335 |
USB_VID = 0x1532 |
| 336 |
USB_PID = 0x0043 |
| 337 |
METHODS = ['get_device_type_mouse', |
| 338 |
'get_logo_brightness', 'set_logo_brightness', 'set_logo_none', 'set_logo_static', 'set_logo_breath_single', 'set_logo_blinking', 'set_logo_spectrum', |
| 339 |
'get_scroll_brightness', 'set_scroll_brightness', 'set_scroll_none', 'set_scroll_static', 'set_scroll_breath_single', 'set_scroll_blinking', 'set_scroll_spectrum', |
| 340 |
'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate'] |
| 341 |
|
| 342 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/278/278_deathadder_chroma.png" |
| 343 |
|
| 344 |
DPI_MAX = 10000 |
| 345 |
|
| 346 |
|
| 347 |
class RazerDeathAdder2000(__RazerDevice): |
| 348 |
""" |
| 349 |
Class for the Razer DeathAdder 2000 |
| 350 |
""" |
| 351 |
USB_VID = 0x1532 |
| 352 |
USB_PID = 0x004F |
| 353 |
METHODS = ['get_device_type_mouse', |
| 354 |
'get_logo_brightness', 'set_logo_brightness', 'set_logo_none', 'set_logo_on', 'set_logo_breath_mono', |
| 355 |
'get_scroll_brightness', 'set_scroll_brightness', 'set_scroll_none', 'set_scroll_on', 'set_scroll_breath_mono', |
| 356 |
'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate'] |
| 357 |
|
| 358 |
DEVICE_IMAGE = "https://assets2.razerzone.com/images/da10m/carousel/razer-death-adder-gallery-09.png" |
| 359 |
|
| 360 |
DPI_MAX = 2000 |
| 361 |
|
| 362 |
|
| 363 |
class RazerDeathAdder2013(__RazerDevice): |
| 364 |
""" |
| 365 |
Class for the Razer DeathAdder 2013 |
| 366 |
""" |
| 367 |
USB_VID = 0x1532 |
| 368 |
USB_PID = 0x0037 |
| 369 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy_byte', 'set_dpi_xy_byte', 'get_poll_rate', 'set_poll_rate', |
| 370 |
'set_scroll_none', 'set_scroll_static', 'set_scroll_breath_single', 'set_scroll_blinking', |
| 371 |
'set_logo_none', 'set_logo_static', 'set_logo_breath_single', 'set_logo_blinking'] |
| 372 |
|
| 373 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/561/561_deathadder_classic.png" |
| 374 |
|
| 375 |
DPI_MAX = 6400 |
| 376 |
|
| 377 |
|
| 378 |
class RazerNagaHexV2(__RazerDevice): |
| 379 |
""" |
| 380 |
Class for the Razer Naga Hex V2 |
| 381 |
""" |
| 382 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Naga_Hex_V2-if0(1|2)-event-kbd') |
| 383 |
|
| 384 |
USB_VID = 0x1532 |
| 385 |
USB_PID = 0x0050 |
| 386 |
HAS_MATRIX = True |
| 387 |
DEDICATED_MACRO_KEYS = True |
| 388 |
MATRIX_DIMS = [1, 3] |
| 389 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate', |
| 390 |
'get_logo_brightness', 'set_logo_brightness', 'get_scroll_brightness', 'set_scroll_brightness', |
| 391 |
# Thumbgrid is technically backlight ID |
| 392 |
'get_backlight_brightness', 'set_backlight_brightness', |
| 393 |
'set_backlight_static', 'set_backlight_spectrum', 'set_backlight_reactive', 'set_backlight_none', 'set_backlight_breath_random', 'set_backlight_breath_single', 'set_backlight_breath_dual', |
| 394 |
# Logo |
| 395 |
'set_logo_static', 'set_logo_spectrum', 'set_logo_none', 'set_logo_reactive', 'set_logo_breath_random', 'set_logo_breath_single', 'set_logo_breath_dual', |
| 396 |
# Scroll wheel |
| 397 |
'set_scroll_static', 'set_scroll_spectrum', 'set_scroll_none', 'set_scroll_reactive', 'set_scroll_breath_random', 'set_scroll_breath_single', 'set_scroll_breath_dual', |
| 398 |
# #Macros |
| 399 |
'get_macros', 'delete_macro', 'add_macro', |
| 400 |
# Can set Logo, Scroll and thumbgrid with custom |
| 401 |
'set_custom_effect', 'set_key_row'] |
| 402 |
|
| 403 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/715/715_nagahexv2_500x500.png" |
| 404 |
|
| 405 |
DPI_MAX = 16000 |
| 406 |
|
| 407 |
def __init__(self, *args, **kwargs): |
| 408 |
super().__init__(*args, **kwargs) |
| 409 |
|
| 410 |
# self.key_manager = _NagaHexV2KeyManager(self._device_number, self.event_files, self, use_epoll=True, testing=self._testing, should_grab_event_files=True) |
| 411 |
|
| 412 |
def _close(self): |
| 413 |
""" |
| 414 |
Close the key manager |
| 415 |
""" |
| 416 |
super()._close() |
| 417 |
|
| 418 |
# self.key_manager.close() |
| 419 |
|
| 420 |
|
| 421 |
class RazerNaga(__RazerDevice): |
| 422 |
""" |
| 423 |
Class for the Razer Naga |
| 424 |
""" |
| 425 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Razer_Naga-if0(1|2)-event-kbd') |
| 426 |
|
| 427 |
USB_VID = 0x1532 |
| 428 |
USB_PID = 0x0015 |
| 429 |
DEDICATED_MACRO_KEYS = True |
| 430 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy_byte', 'set_dpi_xy_byte', 'get_poll_rate', 'set_poll_rate', |
| 431 |
'set_logo_none', 'set_logo_on', 'set_scroll_none', 'set_scroll_on', 'set_backlight_none', 'set_backlight_on'] |
| 432 |
|
| 433 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/products/40/razer-naga-molten-gallery-4.png" |
| 434 |
|
| 435 |
DPI_MAX = 5600 |
| 436 |
|
| 437 |
|
| 438 |
class RazerNaga2012(__RazerDevice): |
| 439 |
""" |
| 440 |
Class for the Razer Naga 2012 |
| 441 |
""" |
| 442 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Razer_Naga-if0(1|2)-event-kbd') |
| 443 |
|
| 444 |
USB_VID = 0x1532 |
| 445 |
USB_PID = 0x002E |
| 446 |
DEDICATED_MACRO_KEYS = True |
| 447 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy_byte', 'set_dpi_xy_byte', 'get_poll_rate', 'set_poll_rate', |
| 448 |
'set_logo_none', 'set_logo_on', 'set_scroll_none', 'set_scroll_on', 'set_backlight_none', 'set_backlight_on'] |
| 449 |
|
| 450 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/products/39/razer-naga-gallery-4.png" |
| 451 |
|
| 452 |
DPI_MAX = 5600 |
| 453 |
|
| 454 |
|
| 455 |
class RazerNagaChroma(__RazerDevice): |
| 456 |
""" |
| 457 |
Class for the Razer Naga Chroma |
| 458 |
""" |
| 459 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Naga_Chroma-if0(1|2)-event-kbd') |
| 460 |
|
| 461 |
USB_VID = 0x1532 |
| 462 |
USB_PID = 0x0053 |
| 463 |
HAS_MATRIX = True |
| 464 |
DEDICATED_MACRO_KEYS = True |
| 465 |
MATRIX_DIMS = [1, 3] |
| 466 |
METHODS = ['get_device_type_mouse', 'get_dpi_xy', 'set_dpi_xy', 'max_dpi', |
| 467 |
'get_poll_rate', 'set_poll_rate', |
| 468 |
'get_backlight_brightness', 'set_backlight_brightness', |
| 469 |
'get_logo_brightness', 'set_logo_brightness', |
| 470 |
'get_scroll_brightness', 'set_scroll_brightness', |
| 471 |
# Thumbgrid is technically backlight ID |
| 472 |
'set_backlight_static', 'set_backlight_spectrum', 'set_backlight_reactive', 'set_backlight_none', 'set_backlight_breath_random', 'set_backlight_breath_single', 'set_backlight_breath_dual', |
| 473 |
# Logo |
| 474 |
'set_logo_static', 'set_logo_spectrum', 'set_logo_none', 'set_logo_reactive', 'set_logo_breath_random', 'set_logo_breath_single', 'set_logo_breath_dual', |
| 475 |
# Scroll wheel |
| 476 |
'set_scroll_static', 'set_scroll_spectrum', 'set_scroll_none', 'set_scroll_reactive', 'set_scroll_breath_random', 'set_scroll_breath_single', 'set_scroll_breath_dual', |
| 477 |
# #Macros |
| 478 |
'get_macros', 'delete_macro', 'add_macro', |
| 479 |
# Can set Logo, Scroll and thumbgrid with custom |
| 480 |
'set_custom_effect', 'set_key_row'] |
| 481 |
|
| 482 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/636/636_naga_chroma.png" |
| 483 |
|
| 484 |
DPI_MAX = 16000 |
| 485 |
|
| 486 |
def __init__(self, *args, **kwargs): |
| 487 |
super().__init__(*args, **kwargs) |
| 488 |
|
| 489 |
# self.key_manager = _NagaHexV2KeyManager(self._device_number, self.event_files, self, use_epoll=True, testing=self._testing, should_grab_event_files=True) |
| 490 |
|
| 491 |
def _close(self): |
| 492 |
""" |
| 493 |
Close the key manager |
| 494 |
""" |
| 495 |
super()._close() |
| 496 |
|
| 497 |
# self.key_manager.close() |
| 498 |
|
| 499 |
|
| 500 |
class RazerNagaTrinity(__RazerDevice): |
| 501 |
""" |
| 502 |
Class for the Razer Naga Trinity |
| 503 |
""" |
| 504 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Naga_Trinity-if0(1|2)-event-kbd') |
| 505 |
|
| 506 |
USB_VID = 0x1532 |
| 507 |
USB_PID = 0x0067 |
| 508 |
HAS_MATRIX = False # TODO Device supports matrix, driver missing |
| 509 |
DEDICATED_MACRO_KEYS = True |
| 510 |
# MATRIX_DIMS = [1, 3] |
| 511 |
METHODS = ['get_device_type_mouse', 'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate', |
| 512 |
'get_brightness', 'set_brightness', 'set_static_effect', 'max_dpi'] |
| 513 |
|
| 514 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/1251/1251_razer_naga_trinity.png" |
| 515 |
|
| 516 |
DPI_MAX = 16000 |
| 517 |
|
| 518 |
def __init__(self, *args, **kwargs): |
| 519 |
super().__init__(*args, **kwargs) |
| 520 |
|
| 521 |
# self.key_manager = _NagaHexV2KeyManager(self._device_number, self.event_files, self, use_epoll=True, testing=self._testing, should_grab_event_files=True) |
| 522 |
|
| 523 |
def _close(self): |
| 524 |
""" |
| 525 |
Close the key manager |
| 526 |
""" |
| 527 |
super()._close() |
| 528 |
|
| 529 |
# self.key_manager.close() |
| 530 |
|
| 531 |
|
| 532 |
class RazerNagaHex(__RazerDevice): |
| 533 |
""" |
| 534 |
Class for the Razer Naga Hex |
| 535 |
""" |
| 536 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Naga_Hex-if01-event-kbd') |
| 537 |
|
| 538 |
USB_VID = 0x1532 |
| 539 |
USB_PID = 0x0041 |
| 540 |
DEDICATED_MACRO_KEYS = True |
| 541 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy_byte', 'set_dpi_xy_byte', 'get_poll_rate', 'set_poll_rate', |
| 542 |
'set_logo_none', 'set_logo_on', 'set_scroll_none', 'set_scroll_on'] |
| 543 |
|
| 544 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/23/23_naga_hex.png" |
| 545 |
|
| 546 |
DPI_MAX = 5600 |
| 547 |
|
| 548 |
|
| 549 |
class RazerNagaHexRed(__RazerDevice): |
| 550 |
""" |
| 551 |
Class for the Razer Naga Hex (Red) |
| 552 |
""" |
| 553 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Naga_Hex-if01-event-kbd') |
| 554 |
|
| 555 |
USB_VID = 0x1532 |
| 556 |
USB_PID = 0x0036 |
| 557 |
DEDICATED_MACRO_KEYS = True |
| 558 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy_byte', 'set_dpi_xy_byte', 'get_poll_rate', 'set_poll_rate', |
| 559 |
'set_logo_none', 'set_logo_on', 'set_scroll_none', 'set_scroll_on'] |
| 560 |
|
| 561 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/products/12/razer-naga-hex-gallery-12.png" |
| 562 |
|
| 563 |
DPI_MAX = 5600 |
| 564 |
|
| 565 |
|
| 566 |
class RazerTaipan(__RazerDevice): |
| 567 |
""" |
| 568 |
Class for the Razer Taipan |
| 569 |
""" |
| 570 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Taipan-if0(1|2)-event-kbd') |
| 571 |
|
| 572 |
USB_VID = 0x1532 |
| 573 |
USB_PID = 0x0034 |
| 574 |
DEDICATED_MACRO_KEYS = True |
| 575 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate', |
| 576 |
'set_logo_none', 'set_logo_on', 'set_scroll_none', 'set_scroll_on'] |
| 577 |
|
| 578 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/19/19_taipan.png" |
| 579 |
|
| 580 |
DPI_MAX = 8200 |
| 581 |
|
| 582 |
|
| 583 |
class RazerDeathAdderElite(__RazerDevice): |
| 584 |
""" |
| 585 |
Class for the Razer DeathAdder Elite |
| 586 |
""" |
| 587 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_DeathAdder_Elite-if0(1|2)-event-kbd') |
| 588 |
|
| 589 |
USB_VID = 0x1532 |
| 590 |
USB_PID = 0x005C |
| 591 |
HAS_MATRIX = True |
| 592 |
MATRIX_DIMS = [1, 2] |
| 593 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate', |
| 594 |
'get_logo_brightness', 'set_logo_brightness', 'get_scroll_brightness', 'set_scroll_brightness', |
| 595 |
# Logo |
| 596 |
'set_logo_static', 'set_logo_spectrum', 'set_logo_none', 'set_logo_reactive', 'set_logo_breath_random', 'set_logo_breath_single', 'set_logo_breath_dual', |
| 597 |
# Scroll wheel |
| 598 |
'set_scroll_static', 'set_scroll_spectrum', 'set_scroll_none', 'set_scroll_reactive', 'set_scroll_breath_random', 'set_scroll_breath_single', 'set_scroll_breath_dual', |
| 599 |
# Can set LOGO and Scroll with custom |
| 600 |
'set_custom_effect', 'set_key_row'] |
| 601 |
|
| 602 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/724/724_deathadderelite_500x500.png" |
| 603 |
|
| 604 |
DPI_MAX = 16000 |
| 605 |
|
| 606 |
|
| 607 |
class RazerDiamondbackChroma(__RazerDevice): |
| 608 |
""" |
| 609 |
Class for the Razer Diamondback Chroma |
| 610 |
""" |
| 611 |
USB_VID = 0x1532 |
| 612 |
USB_PID = 0x004C |
| 613 |
HAS_MATRIX = True |
| 614 |
MATRIX_DIMS = [1, 21] |
| 615 |
METHODS = ['get_device_type_mouse', 'get_backlight_brightness', 'set_backlight_brightness', 'set_backlight_wave', |
| 616 |
'set_backlight_static', 'set_backlight_spectrum', 'set_backlight_reactive', 'set_backlight_none', 'set_backlight_breath_random', |
| 617 |
'set_backlight_breath_single', 'set_backlight_breath_dual', 'set_custom_effect', 'set_key_row', |
| 618 |
'max_dpi', 'get_dpi_xy', 'set_dpi_xy'] |
| 619 |
|
| 620 |
DPI_MAX = 16000 |
| 621 |
|
| 622 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/613/613_diamondback.png" |
| 623 |
|
| 624 |
|
| 625 |
class RazerDeathAdder3_5G(__RazerDevice): |
| 626 |
""" |
| 627 |
Class for the Razer DeathAdder 3.5G |
| 628 |
""" |
| 629 |
USB_VID = 0x1532 |
| 630 |
USB_PID = 0x0016 |
| 631 |
DEDICATED_MACRO_KEYS = True |
| 632 |
METHODS = ['get_device_type_mouse', |
| 633 |
'get_poll_rate', 'set_poll_rate', 'get_dpi_xy', 'set_dpi_xy', 'available_dpi', 'max_dpi', |
| 634 |
'set_logo_none', 'set_logo_on', 'set_scroll_none', 'set_scroll_on'] |
| 635 |
|
| 636 |
AVAILABLE_DPI = [450, 900, 1800, 3500] |
| 637 |
DPI_MAX = 3500 |
| 638 |
|
| 639 |
DEVICE_IMAGE = "https://assets2.razerzone.com/images/da10m/carousel/razer-death-adder-gallery-04.png" |
| 640 |
|
| 641 |
|
| 642 |
class RazerDeathAdder3_5GBlack(__RazerDevice): |
| 643 |
""" |
| 644 |
Class for the Razer DeathAdder 3.5G Black |
| 645 |
""" |
| 646 |
USB_VID = 0x1532 |
| 647 |
USB_PID = 0x0029 |
| 648 |
DEDICATED_MACRO_KEYS = True |
| 649 |
METHODS = ['get_device_type_mouse', |
| 650 |
'get_poll_rate', 'set_poll_rate', 'get_dpi_xy', 'set_dpi_xy', 'available_dpi', 'max_dpi'] |
| 651 |
|
| 652 |
AVAILABLE_DPI = [450, 900, 1800, 3500] |
| 653 |
DPI_MAX = 3500 |
| 654 |
|
| 655 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/products/33/razer-deathadder-be-gallery-3.png" |
| 656 |
|
| 657 |
|
| 658 |
class RazerMamba2012Wireless(__RazerDevice): |
| 659 |
""" |
| 660 |
Class for the Razer Mamba 2012 (Wireless) |
| 661 |
""" |
| 662 |
USB_VID = 0x1532 |
| 663 |
USB_PID = 0x0025 |
| 664 |
METHODS = ['get_device_type_mouse', 'get_battery', 'is_charging', |
| 665 |
'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold', |
| 666 |
'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate', |
| 667 |
'get_scroll_brightness', 'set_scroll_brightness', 'set_scroll_none', 'set_scroll_static', 'set_scroll_spectrum'] |
| 668 |
|
| 669 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/192/192_mamba_2012.png" |
| 670 |
|
| 671 |
DPI_MAX = 6400 |
| 672 |
|
| 673 |
|
| 674 |
class RazerMamba2012Wired(__RazerDevice): |
| 675 |
""" |
| 676 |
Class for the Razer Mamba 2012 (Wired) |
| 677 |
""" |
| 678 |
USB_VID = 0x1532 |
| 679 |
USB_PID = 0x0024 |
| 680 |
METHODS = ['get_device_type_mouse', |
| 681 |
'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold', |
| 682 |
'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate', |
| 683 |
'get_scroll_brightness', 'set_scroll_brightness', 'set_scroll_none', 'set_scroll_static', 'set_scroll_spectrum', |
| 684 |
'get_battery', 'is_charging'] |
| 685 |
|
| 686 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/192/192_mamba_2012.png" |
| 687 |
|
| 688 |
DPI_MAX = 6400 |
| 689 |
|
| 690 |
|
| 691 |
class RazerMambaWirelessWired(__RazerDevice): |
| 692 |
""" |
| 693 |
Class for the Razer Mamba Wireless (Wired) |
| 694 |
""" |
| 695 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Mamba_Wireless_000000000000-if0(1|2)-event-kbd') |
| 696 |
USB_VID = 0x1532 |
| 697 |
USB_PID = 0x0073 |
| 698 |
HAS_MATRIX = True |
| 699 |
MATRIX_DIMS = [1, 16] |
| 700 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate', 'get_logo_brightness', 'set_logo_brightness', 'get_scroll_brightness', 'set_scroll_brightness', |
| 701 |
# Battery |
| 702 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold', |
| 703 |
# Logo |
| 704 |
'set_logo_static', 'set_logo_spectrum', 'set_logo_none', 'set_logo_reactive', 'set_logo_breath_random', 'set_logo_breath_single', 'set_logo_breath_dual', |
| 705 |
# Scroll wheel |
| 706 |
'set_scroll_static', 'set_scroll_spectrum', 'set_scroll_none', 'set_scroll_reactive', 'set_scroll_breath_random', 'set_scroll_breath_single', 'set_scroll_breath_dual', |
| 707 |
# Can set LOGO and Scroll with custom |
| 708 |
'set_custom_effect', 'set_key_row'] |
| 709 |
|
| 710 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/1404/1404_mamba_wireless.png" |
| 711 |
|
| 712 |
DPI_MAX = 16000 |
| 713 |
|
| 714 |
|
| 715 |
class RazerMambaWirelessReceiver(RazerMambaWirelessWired): |
| 716 |
""" |
| 717 |
Class for the Razer Mamba Wireless (Receiver) |
| 718 |
""" |
| 719 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Mamba_Wireless_Receiver-if0(1|2)-event-kbd') |
| 720 |
USB_PID = 0x0072 |
| 721 |
METHODS = RazerMambaWirelessWired.METHODS + ['set_charge_effect', 'set_charge_colour'] |
| 722 |
|
| 723 |
|
| 724 |
class RazerNaga2014(__RazerDevice): |
| 725 |
""" |
| 726 |
Class for the Razer Naga 2014 |
| 727 |
""" |
| 728 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Naga_2014-if0(1|2)-event-kbd') |
| 729 |
|
| 730 |
USB_VID = 0x1532 |
| 731 |
USB_PID = 0x0040 |
| 732 |
DEDICATED_MACRO_KEYS = True |
| 733 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate', |
| 734 |
'set_logo_none', 'set_logo_on', 'set_scroll_none', 'set_scroll_on', 'set_backlight_none', 'set_backlight_on'] |
| 735 |
|
| 736 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/227/227_razer_naga_2014.png" |
| 737 |
|
| 738 |
DPI_MAX = 8200 |
| 739 |
|
| 740 |
|
| 741 |
class RazerOrochi2011(__RazerDevice): |
| 742 |
""" |
| 743 |
Class for the Razer Orochi 2011 |
| 744 |
""" |
| 745 |
USB_VID = 0x1532 |
| 746 |
USB_PID = 0x0013 |
| 747 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Orochi-if01-event-kbd') |
| 748 |
|
| 749 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy_byte', 'set_dpi_xy_byte', 'get_poll_rate', 'set_poll_rate', |
| 750 |
'set_logo_none', 'set_logo_on', 'set_scroll_none', 'set_scroll_on'] |
| 751 |
|
| 752 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/612/612_orochi_2015.png" |
| 753 |
|
| 754 |
DPI_MAX = 4000 |
| 755 |
|
| 756 |
|
| 757 |
class RazerAbyssusV2(__RazerDevice): |
| 758 |
""" |
| 759 |
Class for the Razer Abyssus V2 |
| 760 |
""" |
| 761 |
USB_VID = 0x1532 |
| 762 |
USB_PID = 0x005B |
| 763 |
METHODS = ['get_device_type_mouse', |
| 764 |
'get_logo_brightness', 'set_logo_brightness', 'set_logo_none', 'set_logo_static', 'set_logo_breath_single', 'set_logo_blinking', 'set_logo_spectrum', |
| 765 |
'get_scroll_brightness', 'set_scroll_brightness', 'set_scroll_none', 'set_scroll_static', 'set_scroll_breath_single', 'set_scroll_blinking', 'set_scroll_spectrum', |
| 766 |
'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate'] |
| 767 |
|
| 768 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/721/721_abyssusv2.png" |
| 769 |
|
| 770 |
DPI_MAX = 5000 |
| 771 |
|
| 772 |
|
| 773 |
class RazerAbyssus1800(__RazerDevice): |
| 774 |
""" |
| 775 |
Class for the Razer Abyssus 1800 |
| 776 |
""" |
| 777 |
USB_VID = 0x1532 |
| 778 |
USB_PID = 0x0020 |
| 779 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy_byte', 'set_dpi_xy_byte', 'get_poll_rate', 'set_poll_rate', |
| 780 |
'set_logo_none', 'set_logo_on'] |
| 781 |
|
| 782 |
DPI_MAX = 1800 |
| 783 |
|
| 784 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/1277/1277_abyssus_2000.png" |
| 785 |
|
| 786 |
|
| 787 |
class RazerAbyssus2000(__RazerDevice): |
| 788 |
""" |
| 789 |
Class for the Razer Abyssus 2000 |
| 790 |
""" |
| 791 |
USB_VID = 0x1532 |
| 792 |
USB_PID = 0x005E |
| 793 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate', |
| 794 |
'set_logo_none', 'set_logo_on'] |
| 795 |
|
| 796 |
DPI_MAX = 2000 |
| 797 |
|
| 798 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/1277/1277_abyssus_2000.png" |
| 799 |
|
| 800 |
|
| 801 |
class RazerDeathAdder3500(__RazerDevice): |
| 802 |
""" |
| 803 |
Class for the Razer DeathAdder 3500 |
| 804 |
""" |
| 805 |
USB_VID = 0x1532 |
| 806 |
USB_PID = 0x0054 |
| 807 |
METHODS = ['get_device_type_mouse', |
| 808 |
'get_logo_brightness', 'set_logo_brightness', 'set_logo_none', 'set_logo_static', 'set_logo_breath_single', 'set_logo_blinking', |
| 809 |
'get_scroll_brightness', 'set_scroll_brightness', 'set_scroll_none', 'set_scroll_static', 'set_scroll_breath_single', 'set_scroll_blinking', |
| 810 |
'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate'] |
| 811 |
|
| 812 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/561/561_deathadder_classic.png" |
| 813 |
|
| 814 |
DPI_MAX = 3500 |
| 815 |
|
| 816 |
|
| 817 |
class RazerViperUltimateWired(__RazerDevice): |
| 818 |
""" |
| 819 |
Class for the Razer Viper Ultimate (Wired) |
| 820 |
""" |
| 821 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Razer_Viper_Ultimate_000000000000-if0(1|2)-event-kbd') |
| 822 |
|
| 823 |
USB_VID = 0x1532 |
| 824 |
USB_PID = 0x007A |
| 825 |
HAS_MATRIX = True |
| 826 |
MATRIX_DIMS = [1, 1] |
| 827 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', 'get_poll_rate', 'set_poll_rate', 'get_logo_brightness', 'set_logo_brightness', |
| 828 |
# Battery |
| 829 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold', |
| 830 |
# Logo |
| 831 |
'set_logo_static', 'set_logo_spectrum', 'set_logo_none', 'set_logo_reactive', |
| 832 |
'set_logo_breath_random', 'set_logo_breath_single', 'set_logo_breath_dual', |
| 833 |
# Custom frame |
| 834 |
'set_custom_effect', 'set_key_row'] |
| 835 |
|
| 836 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/1577/ee_photo.png" |
| 837 |
|
| 838 |
DPI_MAX = 20000 |
| 839 |
|
| 840 |
|
| 841 |
class RazerViperUltimateWireless(RazerViperUltimateWired): |
| 842 |
""" |
| 843 |
Class for the Razer Viper Ultimate (Wireless) |
| 844 |
""" |
| 845 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Razer_Viper_Ultimate_Dongle-if0(1|2)-event-kbd') |
| 846 |
|
| 847 |
USB_PID = 0x007B |
| 848 |
METHODS = RazerViperUltimateWired.METHODS + ['set_charge_effect', 'set_charge_colour'] |
| 849 |
|
| 850 |
|
| 851 |
class RazerViper(__RazerDevice): |
| 852 |
""" |
| 853 |
Class for the Razer Viper |
| 854 |
""" |
| 855 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Razer_Viper-if0(1|2)-event-kbd') |
| 856 |
|
| 857 |
USB_VID = 0x1532 |
| 858 |
USB_PID = 0x0078 |
| 859 |
HAS_MATRIX = True |
| 860 |
MATRIX_DIMS = [1, 1] |
| 861 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', 'get_poll_rate', 'set_poll_rate', 'get_logo_brightness', 'set_logo_brightness', |
| 862 |
# Logo |
| 863 |
'set_logo_static', 'set_logo_spectrum', 'set_logo_none', 'set_logo_reactive', |
| 864 |
'set_logo_breath_random', 'set_logo_breath_single', 'set_logo_breath_dual', |
| 865 |
# Custom frame |
| 866 |
'set_custom_effect', 'set_key_row'] |
| 867 |
|
| 868 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/1539/1539_viper.png" |
| 869 |
|
| 870 |
DPI_MAX = 16000 |
| 871 |
|
| 872 |
|
| 873 |
class RazerDeathAdderEssential(__RazerDevice): |
| 874 |
""" |
| 875 |
Class for the Razer DeathAdder Essential |
| 876 |
""" |
| 877 |
USB_VID = 0x1532 |
| 878 |
USB_PID = 0x006E |
| 879 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate', |
| 880 |
# Logo |
| 881 |
'get_logo_brightness', 'set_logo_brightness', |
| 882 |
'set_logo_static', 'set_logo_none', 'set_logo_breath_single', |
| 883 |
# Scroll wheel |
| 884 |
'get_scroll_brightness', 'set_scroll_brightness', |
| 885 |
'set_scroll_static', 'set_scroll_none', 'set_scroll_breath_single'] |
| 886 |
|
| 887 |
DPI_MAX = 6400 |
| 888 |
|
| 889 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/1385/1385_deathadderessential.png" |
| 890 |
|
| 891 |
|
| 892 |
class RazerDeathAdderEssential2021(__RazerDevice): |
| 893 |
""" |
| 894 |
Class for the Razer DeathAdder Essential (2021) |
| 895 |
""" |
| 896 |
USB_VID = 0x1532 |
| 897 |
USB_PID = 0x0098 |
| 898 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate', |
| 899 |
# Logo |
| 900 |
'get_logo_brightness', 'set_logo_brightness', |
| 901 |
'set_logo_static', 'set_logo_none', 'set_logo_breath_single'] |
| 902 |
|
| 903 |
DPI_MAX = 6400 |
| 904 |
|
| 905 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/1385/1385_deathadderessential.png" |
| 906 |
|
| 907 |
|
| 908 |
class RazerMambaElite(__RazerDevice): |
| 909 |
""" |
| 910 |
Class for the Razer Mamba Elite |
| 911 |
""" |
| 912 |
USB_VID = 0x1532 |
| 913 |
USB_PID = 0x006C |
| 914 |
HAS_MATRIX = True |
| 915 |
WAVE_DIRS = (1, 2) |
| 916 |
MATRIX_DIMS = [1, 20] |
| 917 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', |
| 918 |
'get_poll_rate', 'set_poll_rate', |
| 919 |
# Logo logo_led_brightness/logo_matrix_effect_breath/... |
| 920 |
'get_logo_brightness', 'set_logo_brightness', |
| 921 |
'set_logo_wave', 'set_logo_static', 'set_logo_spectrum', 'set_logo_none', 'set_logo_reactive', 'set_logo_breath_random', 'set_logo_breath_single', 'set_logo_breath_dual', |
| 922 |
# Scroll wheel scroll_led_brightness/scroll_matrix_effect_breath/... |
| 923 |
'get_scroll_brightness', 'set_scroll_brightness', |
| 924 |
'set_scroll_wave', 'set_scroll_static', 'set_scroll_spectrum', 'set_scroll_none', 'set_scroll_reactive', 'set_scroll_breath_random', 'set_scroll_breath_single', 'set_scroll_breath_dual', |
| 925 |
# Left side left_led_brightness/left_matrix_effect_breath/... |
| 926 |
'get_left_brightness', 'set_left_brightness', |
| 927 |
'set_left_wave', 'set_left_static', 'set_left_spectrum', 'set_left_none', 'set_left_reactive', 'set_left_breath_random', 'set_left_breath_single', 'set_left_breath_dual', |
| 928 |
# Right side right_led_brightness/right_matrix_effect_breath/... |
| 929 |
'get_right_brightness', 'set_right_brightness', |
| 930 |
'set_right_wave', 'set_right_static', 'set_right_spectrum', 'set_right_none', 'set_right_reactive', 'set_right_breath_random', 'set_right_breath_single', 'set_right_breath_dual', |
| 931 |
# Custom frame |
| 932 |
'set_custom_effect', 'set_key_row'] |
| 933 |
|
| 934 |
DPI_MAX = 16000 |
| 935 |
|
| 936 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/1390/1390_mamba_elite.png" |
| 937 |
|
| 938 |
|
| 939 |
class RazerNagaLeftHanded2020(__RazerDevice): |
| 940 |
""" |
| 941 |
Class for the Razer Naga Left Handed Edition 2020 |
| 942 |
""" |
| 943 |
USB_VID = 0x1532 |
| 944 |
USB_PID = 0x008D |
| 945 |
HAS_MATRIX = True |
| 946 |
WAVE_DIRS = (1, 2) |
| 947 |
MATRIX_DIMS = [1, 3] |
| 948 |
|
| 949 |
DEDICATED_MACRO_KEYS = True |
| 950 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', |
| 951 |
'get_poll_rate', 'set_poll_rate', |
| 952 |
# Macros |
| 953 |
'get_macros', 'delete_macro', 'add_macro', |
| 954 |
# Logo |
| 955 |
'get_logo_brightness', 'set_logo_brightness', |
| 956 |
'set_logo_wave', 'set_logo_static', 'set_logo_spectrum', 'set_logo_none', 'set_logo_reactive', 'set_logo_breath_random', 'set_logo_breath_single', 'set_logo_breath_dual', |
| 957 |
# Scroll wheel |
| 958 |
'get_scroll_brightness', 'set_scroll_brightness', |
| 959 |
'set_scroll_wave', 'set_scroll_static', 'set_scroll_spectrum', 'set_scroll_none', 'set_scroll_reactive', 'set_scroll_breath_random', 'set_scroll_breath_single', 'set_scroll_breath_dual', |
| 960 |
# Right side = thumbgrid |
| 961 |
'get_right_brightness', 'set_right_brightness', |
| 962 |
'set_right_wave', 'set_right_static', 'set_right_spectrum', 'set_right_none', 'set_right_reactive', 'set_right_breath_random', 'set_right_breath_single', 'set_right_breath_dual', |
| 963 |
# Custom frame |
| 964 |
'set_custom_effect', 'set_key_row'] |
| 965 |
|
| 966 |
DPI_MAX = 20000 |
| 967 |
|
| 968 |
DEVICE_IMAGE = "https://rzrwarranty.s3.amazonaws.com/cee694cd7526df413008167b7566af310985321b20c57f3dc42e5cbd773f2417.png" |
| 969 |
|
| 970 |
|
| 971 |
class RazerNagaProWired(__RazerDeviceBrightnessSuspend): |
| 972 |
""" |
| 973 |
Class for the Razer Naga Pro (Wired) |
| 974 |
""" |
| 975 |
USB_VID = 0x1532 |
| 976 |
USB_PID = 0x008F |
| 977 |
HAS_MATRIX = True |
| 978 |
WAVE_DIRS = (1, 2) |
| 979 |
MATRIX_DIMS = [1, 3] |
| 980 |
|
| 981 |
DEDICATED_MACRO_KEYS = True |
| 982 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate', 'get_dpi_stages', 'set_dpi_stages', |
| 983 |
# Macros |
| 984 |
'get_macros', 'delete_macro', 'add_macro', |
| 985 |
# Battery |
| 986 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold', |
| 987 |
# Logo |
| 988 |
'get_logo_brightness', 'set_logo_brightness', |
| 989 |
'set_logo_wave', 'set_logo_static', 'set_logo_spectrum', 'set_logo_none', 'set_logo_reactive', 'set_logo_breath_random', 'set_logo_breath_single', 'set_logo_breath_dual', |
| 990 |
# Scroll wheel |
| 991 |
'get_scroll_brightness', 'set_scroll_brightness', |
| 992 |
'set_scroll_wave', 'set_scroll_static', 'set_scroll_spectrum', 'set_scroll_none', 'set_scroll_reactive', 'set_scroll_breath_random', 'set_scroll_breath_single', 'set_scroll_breath_dual', |
| 993 |
# Thumbgrid |
| 994 |
'set_static_effect', 'set_spectrum_effect', 'set_reactive_effect', 'set_none_effect', 'set_breath_random_effect', 'set_breath_single_effect', 'set_breath_dual_effect', |
| 995 |
# Custom frame |
| 996 |
'set_custom_effect', 'set_key_row'] |
| 997 |
|
| 998 |
DPI_MAX = 20000 |
| 999 |
|
| 1000 |
DEVICE_IMAGE = "https://hybrismediaprod.blob.core.windows.net/sys-master-phoenix-images-container/hfd/ha6/9080569528350/razer-naga-pro-500x500.png" |
| 1001 |
|
| 1002 |
|
| 1003 |
class RazerNagaProWireless(RazerNagaProWired): |
| 1004 |
""" |
| 1005 |
Class for the Razer Naga Pro (Wireless) |
| 1006 |
""" |
| 1007 |
USB_PID = 0x0090 |
| 1008 |
METHODS = RazerNagaProWired.METHODS + ['set_charge_effect', 'set_charge_colour'] |
| 1009 |
|
| 1010 |
|
| 1011 |
class RazerNagaV2ProWired(__RazerDeviceBrightnessSuspend): |
| 1012 |
""" |
| 1013 |
Class for the Razer Naga V2 Pro (Wired) |
| 1014 |
""" |
| 1015 |
USB_VID = 0x1532 |
| 1016 |
USB_PID = 0x00A7 |
| 1017 |
HAS_MATRIX = True |
| 1018 |
WAVE_DIRS = (1, 2) |
| 1019 |
MATRIX_DIMS = [1, 3] |
| 1020 |
|
| 1021 |
DEDICATED_MACRO_KEYS = True |
| 1022 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate', 'get_dpi_stages', 'set_dpi_stages', |
| 1023 |
# Battery |
| 1024 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold', |
| 1025 |
# Logo |
| 1026 |
'get_logo_brightness', 'set_logo_brightness', |
| 1027 |
'set_logo_wave', 'set_logo_static', 'set_logo_spectrum', 'set_logo_none', 'set_logo_reactive', 'set_logo_breath_random', 'set_logo_breath_single', 'set_logo_breath_dual', |
| 1028 |
# Thumbgrid |
| 1029 |
'set_static_effect', 'set_spectrum_effect', 'set_reactive_effect', 'set_none_effect', 'set_breath_random_effect', 'set_breath_single_effect', 'set_breath_dual_effect', |
| 1030 |
# Custom frame |
| 1031 |
'set_custom_effect', 'set_key_row'] |
| 1032 |
|
| 1033 |
DPI_MAX = 30000 |
| 1034 |
|
| 1035 |
DEVICE_IMAGE = "https://dl.razerzone.com/src2/6292/6292-1-en-v1.png" |
| 1036 |
|
| 1037 |
|
| 1038 |
class RazerNagaV2ProWireless(RazerNagaV2ProWired): |
| 1039 |
""" |
| 1040 |
Class for the Razer Naga V2 Pro (Wireless) |
| 1041 |
""" |
| 1042 |
USB_PID = 0x00A8 |
| 1043 |
METHODS = RazerNagaV2ProWired.METHODS + ['set_charge_effect', 'set_charge_colour'] |
| 1044 |
|
| 1045 |
|
| 1046 |
class RazerDeathAdder1800(__RazerDevice): |
| 1047 |
""" |
| 1048 |
Class for the Razer DeathAdder 1800 |
| 1049 |
""" |
| 1050 |
USB_VID = 0x1532 |
| 1051 |
USB_PID = 0x0038 |
| 1052 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy_byte', 'set_dpi_xy_byte', 'get_poll_rate', 'set_poll_rate', |
| 1053 |
'set_logo_none', 'set_logo_on'] |
| 1054 |
|
| 1055 |
DPI_MAX = 1800 |
| 1056 |
|
| 1057 |
DEVICE_IMAGE = "https://rzrwarranty.s3.amazonaws.com/a7daf40ad78c9584a693e310effa956019cdcd081391f93f71a7cd36d3dc577e.png" |
| 1058 |
|
| 1059 |
|
| 1060 |
class RazerBasilisk(__RazerDevice): |
| 1061 |
""" |
| 1062 |
Class for the Razer Basilisk |
| 1063 |
""" |
| 1064 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Basilisk-if0(1|2)-event-kbd') |
| 1065 |
|
| 1066 |
USB_VID = 0x1532 |
| 1067 |
USB_PID = 0x0064 |
| 1068 |
HAS_MATRIX = True |
| 1069 |
MATRIX_DIMS = [1, 2] |
| 1070 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate', |
| 1071 |
'get_logo_brightness', 'set_logo_brightness', 'get_scroll_brightness', 'set_scroll_brightness', |
| 1072 |
# Logo |
| 1073 |
'set_logo_static', 'set_logo_spectrum', 'set_logo_none', 'set_logo_reactive', 'set_logo_breath_random', 'set_logo_breath_single', 'set_logo_breath_dual', |
| 1074 |
# Scroll wheel |
| 1075 |
'set_scroll_static', 'set_scroll_spectrum', 'set_scroll_none', 'set_scroll_reactive', 'set_scroll_breath_random', 'set_scroll_breath_single', 'set_scroll_breath_dual', |
| 1076 |
# Can set LOGO and Scroll with custom |
| 1077 |
'set_custom_effect', 'set_key_row'] |
| 1078 |
|
| 1079 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/1241/1241_basilisk.png" |
| 1080 |
|
| 1081 |
DPI_MAX = 16000 |
| 1082 |
|
| 1083 |
|
| 1084 |
class RazerBasiliskEssential(__RazerDevice): |
| 1085 |
""" |
| 1086 |
Class for the Razer Basilisk Essential |
| 1087 |
""" |
| 1088 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Basilisk_Essential-if0(1|2)-event-kbd') |
| 1089 |
|
| 1090 |
USB_VID = 0x1532 |
| 1091 |
USB_PID = 0x0065 |
| 1092 |
HAS_MATRIX = True |
| 1093 |
MATRIX_DIMS = [1, 1] |
| 1094 |
DEDICATED_MACRO_KEYS = True |
| 1095 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', 'get_poll_rate', 'set_poll_rate', |
| 1096 |
# Logo |
| 1097 |
'get_logo_brightness', 'set_logo_brightness', 'set_logo_spectrum', 'set_logo_reactive', 'set_logo_breath_random', 'set_logo_breath_single', 'set_logo_breath_dual', 'set_logo_static', 'set_logo_none', |
| 1098 |
# Can set LOGO with custom |
| 1099 |
'set_custom_effect', 'set_key_row'] |
| 1100 |
|
| 1101 |
DEVICE_IMAGE = "https://hybrismediaprod.blob.core.windows.net/sys-master-phoenix-images-container/h19/h61/9080617500702/Basilisk-Essential-500x500.png" |
| 1102 |
|
| 1103 |
DPI_MAX = 6400 |
| 1104 |
|
| 1105 |
|
| 1106 |
class RazerBasiliskUltimateWired(__RazerDevice): |
| 1107 |
""" |
| 1108 |
Class for the Razer Basilisk Ultimate |
| 1109 |
""" |
| 1110 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Basilisk_Ultimate_000000000000-if0(1|2)-event-kbd') |
| 1111 |
|
| 1112 |
USB_VID = 0x1532 |
| 1113 |
USB_PID = 0x0086 |
| 1114 |
HAS_MATRIX = True |
| 1115 |
MATRIX_DIMS = [1, 14] |
| 1116 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate', |
| 1117 |
# Battery |
| 1118 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold', |
| 1119 |
# Logo |
| 1120 |
'get_logo_brightness', 'set_logo_brightness', |
| 1121 |
# Spectrum |
| 1122 |
'set_logo_spectrum', |
| 1123 |
# Reactive |
| 1124 |
'set_logo_reactive', |
| 1125 |
# Breath |
| 1126 |
'set_logo_breath_random', |
| 1127 |
'set_logo_breath_single', |
| 1128 |
'set_logo_breath_dual', |
| 1129 |
# Static |
| 1130 |
'set_logo_static', |
| 1131 |
# None |
| 1132 |
'set_logo_none', |
| 1133 |
# Scroll wheel |
| 1134 |
'get_scroll_brightness', 'set_scroll_brightness', |
| 1135 |
# Spectrum |
| 1136 |
'set_scroll_spectrum', |
| 1137 |
# Reactive |
| 1138 |
'set_scroll_reactive', |
| 1139 |
# Breath |
| 1140 |
'set_scroll_breath_random', |
| 1141 |
'set_scroll_breath_single', |
| 1142 |
'set_scroll_breath_dual', |
| 1143 |
# Static |
| 1144 |
'set_scroll_static', |
| 1145 |
# None |
| 1146 |
'set_scroll_none', |
| 1147 |
'get_left_brightness', 'set_left_brightness', 'get_right_brightness', 'set_right_brightness', |
| 1148 |
# Left side |
| 1149 |
'set_left_wave', 'set_left_static', 'set_left_spectrum', 'set_left_none', 'set_left_reactive', 'set_left_breath_random', 'set_left_breath_single', 'set_left_breath_dual', |
| 1150 |
# Right side |
| 1151 |
'set_right_wave', 'set_right_static', 'set_right_spectrum', 'set_right_none', 'set_right_reactive', 'set_right_breath_random', 'set_right_breath_single', 'set_right_breath_dual', |
| 1152 |
|
| 1153 |
# Can set LOGO and Scroll with custom |
| 1154 |
'set_custom_effect', 'set_key_row'] |
| 1155 |
|
| 1156 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/1590/1590_basilisk_ultimate.png" |
| 1157 |
|
| 1158 |
DPI_MAX = 20000 |
| 1159 |
|
| 1160 |
|
| 1161 |
class RazerBasiliskUltimateReceiver(RazerBasiliskUltimateWired): |
| 1162 |
USB_PID = 0x0088 |
| 1163 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Basilisk_Ultimate_Dongle-if0(1|2)-event-kbd') |
| 1164 |
METHODS = RazerBasiliskUltimateWired.METHODS + \ |
| 1165 |
['set_charge_effect', 'set_charge_colour'] |
| 1166 |
|
| 1167 |
|
| 1168 |
class RazerBasiliskV2(__RazerDevice): |
| 1169 |
""" |
| 1170 |
Class for the Razer Basilisk V2 |
| 1171 |
""" |
| 1172 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Basilisk_V2-if0(1|2)-event-kbd') |
| 1173 |
|
| 1174 |
USB_VID = 0x1532 |
| 1175 |
USB_PID = 0x0085 |
| 1176 |
HAS_MATRIX = True |
| 1177 |
MATRIX_DIMS = [1, 2] |
| 1178 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate', |
| 1179 |
'get_logo_brightness', 'set_logo_brightness', 'get_scroll_brightness', 'set_scroll_brightness', |
| 1180 |
# Logo |
| 1181 |
'set_logo_static', 'set_logo_spectrum', 'set_logo_none', 'set_logo_reactive', 'set_logo_breath_random', 'set_logo_breath_single', 'set_logo_breath_dual', |
| 1182 |
# Scroll wheel |
| 1183 |
'set_scroll_static', 'set_scroll_spectrum', 'set_scroll_none', 'set_scroll_reactive', 'set_scroll_breath_random', 'set_scroll_breath_single', 'set_scroll_breath_dual', |
| 1184 |
# Can set LOGO and Scroll with custom |
| 1185 |
'set_custom_effect', 'set_key_row'] |
| 1186 |
|
| 1187 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/1617/1617_basilisk-v2.png" |
| 1188 |
|
| 1189 |
DPI_MAX = 20000 |
| 1190 |
|
| 1191 |
|
| 1192 |
class RazerBasiliskV3(__RazerDevice): |
| 1193 |
""" |
| 1194 |
Class for the Razer Basilisk V3 |
| 1195 |
""" |
| 1196 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Basilisk_V3-if0(1|2)-event-kbd') |
| 1197 |
|
| 1198 |
USB_VID = 0x1532 |
| 1199 |
USB_PID = 0x0099 |
| 1200 |
HAS_MATRIX = True |
| 1201 |
MATRIX_DIMS = [1, 11] |
| 1202 |
METHODS = ['get_device_type_mouse', |
| 1203 |
'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', |
| 1204 |
'get_poll_rate', 'set_poll_rate', |
| 1205 |
'get_brightness', 'set_brightness', |
| 1206 |
'get_logo_brightness', 'set_logo_brightness', |
| 1207 |
'get_scroll_brightness', 'set_scroll_brightness', |
| 1208 |
# Scroll wheel controls |
| 1209 |
'get_scroll_mode', 'set_scroll_mode', |
| 1210 |
'get_scroll_acceleration', 'set_scroll_acceleration', |
| 1211 |
'get_scroll_smart_reel', 'set_scroll_smart_reel', |
| 1212 |
# All LEDs (partial support) |
| 1213 |
'set_static_effect', 'set_wave_effect', 'set_spectrum_effect', |
| 1214 |
# Logo (partial support) |
| 1215 |
'set_logo_wave', 'set_logo_static', 'set_logo_spectrum', |
| 1216 |
# Scroll wheel (partial support) |
| 1217 |
'set_scroll_wave', 'set_scroll_static', 'set_scroll_spectrum', |
| 1218 |
# Can set custom matrix effects |
| 1219 |
'set_custom_effect', 'set_key_row'] |
| 1220 |
|
| 1221 |
DEVICE_IMAGE = "https://assets2.razerzone.com/pages/basilisk-v3-4D578898E8144Le8da21dde32b7a9f5f/basilisk.png" |
| 1222 |
|
| 1223 |
DPI_MAX = 26000 |
| 1224 |
|
| 1225 |
|
| 1226 |
class RazerDeathAdderV2(__RazerDevice): |
| 1227 |
""" |
| 1228 |
Class for the Razer DeathAdder V2 |
| 1229 |
""" |
| 1230 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_DeathAdder_V2-if0(1|2)-event-kbd') |
| 1231 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate', |
| 1232 |
'get_logo_brightness', 'set_logo_brightness', 'get_scroll_brightness', 'set_scroll_brightness', |
| 1233 |
# Logo |
| 1234 |
'set_logo_static', 'set_logo_spectrum', 'set_logo_none', 'set_logo_reactive', 'set_logo_breath_random', 'set_logo_breath_single', 'set_logo_breath_dual', |
| 1235 |
# Scroll wheel |
| 1236 |
'set_scroll_static', 'set_scroll_spectrum', 'set_scroll_none', 'set_scroll_reactive', 'set_scroll_breath_random', 'set_scroll_breath_single', 'set_scroll_breath_dual', |
| 1237 |
# Can set LOGO and Scroll with custom |
| 1238 |
'set_custom_effect', 'set_key_row'] |
| 1239 |
|
| 1240 |
USB_VID = 0x1532 |
| 1241 |
USB_PID = 0x0084 |
| 1242 |
HAS_MATRIX = True |
| 1243 |
MATRIX_DIMS = [1, 1] |
| 1244 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/1612/1612_razerdeathadderv2.png" |
| 1245 |
|
| 1246 |
DPI_MAX = 20000 |
| 1247 |
|
| 1248 |
|
| 1249 |
class RazerDeathAdderV2ProWired(__RazerDevice): |
| 1250 |
""" |
| 1251 |
Class for the Razer DeathAdder V2 Pro (Wired) |
| 1252 |
""" |
| 1253 |
EVENT_FILE_REGEX = re.compile(r'.*1532_Razer_DeathAdder_V2_Pro_000000000000-if0(1|2)-event-kbd') |
| 1254 |
|
| 1255 |
USB_VID = 0x1532 |
| 1256 |
USB_PID = 0x007C |
| 1257 |
HAS_MATRIX = True |
| 1258 |
MATRIX_DIMS = [1, 1] |
| 1259 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', 'get_poll_rate', 'set_poll_rate', 'get_logo_brightness', 'set_logo_brightness', |
| 1260 |
# Battery |
| 1261 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold', |
| 1262 |
# Logo |
| 1263 |
'set_logo_static', 'set_logo_spectrum', 'set_logo_none', 'set_logo_reactive', |
| 1264 |
'set_logo_breath_random', 'set_logo_breath_single', 'set_logo_breath_dual', |
| 1265 |
# Custom frame |
| 1266 |
'set_custom_effect', 'set_key_row'] |
| 1267 |
|
| 1268 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/1714/comp_1_00000.png" |
| 1269 |
|
| 1270 |
DPI_MAX = 20000 |
| 1271 |
|
| 1272 |
|
| 1273 |
class RazerDeathAdderV2ProWireless(RazerDeathAdderV2ProWired): |
| 1274 |
""" |
| 1275 |
Class for the Razer DeathAdder V2 Pro (Wireless) |
| 1276 |
""" |
| 1277 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Razer_DeathAdder_V2_Pro_000000000000-if0(1|2)-event-kbd') |
| 1278 |
|
| 1279 |
USB_PID = 0x007D |
| 1280 |
METHODS = RazerDeathAdderV2ProWired.METHODS + ['set_charge_effect', 'set_charge_colour'] |
| 1281 |
|
| 1282 |
|
| 1283 |
class RazerAtherisReceiver(__RazerDevice): |
| 1284 |
""" |
| 1285 |
Class for the Razer Atheris (Receiver) |
| 1286 |
""" |
| 1287 |
USB_VID = 0x1532 |
| 1288 |
USB_PID = 0x0062 |
| 1289 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Razer_Atheris_-_Mobile_Gaming_Mouse-if0(1|2)-event-kbd') |
| 1290 |
METHODS = ['get_device_type_mouse', 'get_poll_rate', 'set_poll_rate', |
| 1291 |
'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', |
| 1292 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', |
| 1293 |
'get_low_battery_threshold', 'set_low_battery_threshold'] |
| 1294 |
|
| 1295 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/1234/1234_atheris.png" |
| 1296 |
|
| 1297 |
DPI_MAX = 7200 |
| 1298 |
|
| 1299 |
|
| 1300 |
class RazerBasiliskXHyperSpeed(__RazerDevice): |
| 1301 |
""" |
| 1302 |
Class for the Razer Basilisk X HyperSpeed |
| 1303 |
""" |
| 1304 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Basilisk_X_HyperSpeed-if0(1|2)-event-kbd') |
| 1305 |
|
| 1306 |
USB_VID = 0x1532 |
| 1307 |
USB_PID = 0x0083 |
| 1308 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', |
| 1309 |
'get_dpi_stages', 'set_dpi_stages', 'get_poll_rate', |
| 1310 |
'set_poll_rate', 'get_battery', 'is_charging', 'get_idle_time', |
| 1311 |
'set_idle_time', 'get_low_battery_threshold', |
| 1312 |
'set_low_battery_threshold'] |
| 1313 |
|
| 1314 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/1589/1589_basilisk_x__hyperspeed.png" |
| 1315 |
|
| 1316 |
DPI_MAX = 16000 |
| 1317 |
|
| 1318 |
|
| 1319 |
class RazerOrochiV2Receiver(__RazerDevice): |
| 1320 |
""" |
| 1321 |
Class for the Razer Orochi V2 (Receiver) |
| 1322 |
""" |
| 1323 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Orochi_V2_000000000000-if0(1|2)-event-kbd') |
| 1324 |
|
| 1325 |
USB_VID = 0x1532 |
| 1326 |
USB_PID = 0x0094 |
| 1327 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', |
| 1328 |
'get_dpi_stages', 'set_dpi_stages', 'get_poll_rate', |
| 1329 |
'set_poll_rate', 'get_battery', 'is_charging', 'get_idle_time', |
| 1330 |
'set_idle_time', 'get_low_battery_threshold', |
| 1331 |
'set_low_battery_threshold'] |
| 1332 |
|
| 1333 |
DEVICE_IMAGE = "https://dl.razerzone.com/src/OrochiV2-1-en-v1.png" |
| 1334 |
|
| 1335 |
DPI_MAX = 18000 |
| 1336 |
|
| 1337 |
|
| 1338 |
class RazerOrochiV2Bluetooth(RazerOrochiV2Receiver): |
| 1339 |
""" |
| 1340 |
Class for the Razer Orochi V2 (Bluetooth) |
| 1341 |
""" |
| 1342 |
USB_PID = 0x0095 |
| 1343 |
|
| 1344 |
|
| 1345 |
class RazerNagaX(__RazerDevice): |
| 1346 |
""" |
| 1347 |
Class for the Razer Naga X |
| 1348 |
""" |
| 1349 |
USB_VID = 0x1532 |
| 1350 |
USB_PID = 0x0096 |
| 1351 |
HAS_MATRIX = True |
| 1352 |
WAVE_DIRS = (1, 2) |
| 1353 |
MATRIX_DIMS = [1, 2] |
| 1354 |
|
| 1355 |
DEDICATED_MACRO_KEYS = True |
| 1356 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', |
| 1357 |
'get_dpi_stages', 'set_dpi_stages', |
| 1358 |
'get_poll_rate', 'set_poll_rate', |
| 1359 |
# Macros |
| 1360 |
'get_macros', 'delete_macro', 'add_macro', |
| 1361 |
# Scroll wheel |
| 1362 |
'get_scroll_brightness', 'set_scroll_brightness', |
| 1363 |
'set_scroll_wave', 'set_scroll_static', 'set_scroll_spectrum', 'set_scroll_none', 'set_scroll_reactive', 'set_scroll_breath_random', 'set_scroll_breath_single', 'set_scroll_breath_dual', |
| 1364 |
# Left side = thumbgrid |
| 1365 |
'get_left_brightness', 'set_left_brightness', |
| 1366 |
'set_left_wave', 'set_left_static', 'set_left_spectrum', 'set_left_none', 'set_left_reactive', 'set_left_breath_random', 'set_left_breath_single', 'set_left_breath_dual', |
| 1367 |
# Custom frame |
| 1368 |
'set_custom_effect', 'set_key_row'] |
| 1369 |
|
| 1370 |
DPI_MAX = 18000 |
| 1371 |
|
| 1372 |
DEVICE_IMAGE = "https://dl.razerzone.com/src/3993-1-EN-V2.png" |
| 1373 |
|
| 1374 |
|
| 1375 |
class RazerDeathAdderV2Mini(__RazerDevice): |
| 1376 |
""" |
| 1377 |
Class for the Razer DeathAdder V2 Mini |
| 1378 |
""" |
| 1379 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_DeathAdder_V2_Mini-if0(1|2)-event-kbd') |
| 1380 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', |
| 1381 |
'get_dpi_stages', 'set_dpi_stages', |
| 1382 |
'get_poll_rate', 'set_poll_rate', |
| 1383 |
'get_logo_brightness', 'set_logo_brightness', |
| 1384 |
# Logo |
| 1385 |
'set_logo_static', 'set_logo_spectrum', 'set_logo_none', 'set_logo_reactive', |
| 1386 |
'set_logo_breath_random', 'set_logo_breath_single', 'set_logo_breath_dual', |
| 1387 |
# Custom frame |
| 1388 |
'set_custom_effect', 'set_key_row'] |
| 1389 |
|
| 1390 |
USB_VID = 0x1532 |
| 1391 |
USB_PID = 0x008C |
| 1392 |
HAS_MATRIX = True |
| 1393 |
MATRIX_DIMS = [1, 1] |
| 1394 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/1692/deathadder-v2-mini.png" |
| 1395 |
|
| 1396 |
DPI_MAX = 8500 |
| 1397 |
|
| 1398 |
|
| 1399 |
class RazerViper8KHz(__RazerDevice): |
| 1400 |
""" |
| 1401 |
Class for the Razer Viper 8KHz |
| 1402 |
""" |
| 1403 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Viper_8KHz-if0(1|2)-event-kbd') |
| 1404 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', |
| 1405 |
'get_dpi_stages', 'set_dpi_stages', |
| 1406 |
'get_poll_rate', 'set_poll_rate', 'get_supported_poll_rates', |
| 1407 |
'get_logo_brightness', 'set_logo_brightness', |
| 1408 |
# Logo |
| 1409 |
'set_logo_static', 'set_logo_spectrum', 'set_logo_none', 'set_logo_reactive', |
| 1410 |
'set_logo_breath_random', 'set_logo_breath_single', 'set_logo_breath_dual'] |
| 1411 |
USB_VID = 0x1532 |
| 1412 |
USB_PID = 0x0091 |
| 1413 |
DEVICE_IMAGE = "https://dl.razerzone.com/Images/Viper%208KHz/Viper8khz.png" |
| 1414 |
|
| 1415 |
DPI_MAX = 20000 |
| 1416 |
|
| 1417 |
POLL_RATES = [125, 500, 1000, 2000, 4000, 8000] |
| 1418 |
|
| 1419 |
|
| 1420 |
class RazerViperMiniSEWired(__RazerDevice): |
| 1421 |
""" |
| 1422 |
Class for the Razer Viper Mini SE (Wired) |
| 1423 |
""" |
| 1424 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Viper_Mini_Signature_Edition_000000000000-if0(1|2)-event-kbd') |
| 1425 |
USB_VID = 0x1532 |
| 1426 |
USB_PID = 0x009E |
| 1427 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', |
| 1428 |
'get_dpi_stages', 'set_dpi_stages', |
| 1429 |
'get_poll_rate', 'set_poll_rate', 'get_supported_poll_rates', |
| 1430 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold'] |
| 1431 |
|
| 1432 |
DEVICE_IMAGE = "https://dl.razerzone.com/src2/9682/9682-1-en-v1.png" |
| 1433 |
|
| 1434 |
DPI_MAX = 30000 |
| 1435 |
|
| 1436 |
POLL_RATES = [125, 500, 1000] |
| 1437 |
|
| 1438 |
|
| 1439 |
class RazerViperMiniSEWireless(RazerViperMiniSEWired): |
| 1440 |
""" |
| 1441 |
Class for the Razer Viper Mini SE (Wireless) |
| 1442 |
""" |
| 1443 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Viper_Mini_Signature_Edition-if0(1|2)-event-kbd') |
| 1444 |
USB_PID = 0x009F |
| 1445 |
|
| 1446 |
METHODS = RazerViperMiniSEWired.METHODS + ['set_hyperpolling_wireless_dongle_indicator_led_mode'] |
| 1447 |
|
| 1448 |
POLL_RATES = [125, 500, 1000, 2000, 4000, 8000] |
| 1449 |
|
| 1450 |
|
| 1451 |
class RazerNagaEpicChromaWired(__RazerDevice): |
| 1452 |
""" |
| 1453 |
Class for the Razer Naga Epic Chroma (Wired) |
| 1454 |
""" |
| 1455 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Razer_Naga_Epic_Chroma-if0(1|2)-event-kbd') |
| 1456 |
|
| 1457 |
USB_VID = 0x1532 |
| 1458 |
USB_PID = 0x003E |
| 1459 |
METHODS = ['get_firmware', 'get_matrix_dims', 'has_matrix', 'get_device_name', 'get_device_type_mouse', 'get_battery', 'is_charging', |
| 1460 |
'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_poll_rate', 'set_poll_rate', |
| 1461 |
'get_scroll_brightness', 'set_scroll_brightness', 'set_scroll_none', 'set_scroll_static', 'set_scroll_breath_single', 'set_scroll_spectrum', |
| 1462 |
'get_backlight_brightness', 'set_backlight_brightness', 'set_backlight_none', 'set_backlight_static', 'set_backlight_breath_single', 'set_backlight_spectrum'] |
| 1463 |
|
| 1464 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/products/20776/rzrnagaepicchroma_04.png" |
| 1465 |
|
| 1466 |
DPI_MAX = 8200 |
| 1467 |
|
| 1468 |
|
| 1469 |
class RazerNagaEpicChromaWireless(RazerNagaEpicChromaWired): |
| 1470 |
""" |
| 1471 |
Class for the Razer Naga Epic Chroma (Wireless) |
| 1472 |
""" |
| 1473 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Razer_Naga_Epic_Chroma_Dock-if0(1|2)-event-kbd') |
| 1474 |
|
| 1475 |
USB_PID = 0x003F |
| 1476 |
|
| 1477 |
|
| 1478 |
class RazerProClickReceiver(__RazerDevice): |
| 1479 |
""" |
| 1480 |
Class for the Razer Pro Click (Receiver) |
| 1481 |
""" |
| 1482 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Pro_Click-if0(1|2)-event-kbd') |
| 1483 |
USB_VID = 0x1532 |
| 1484 |
USB_PID = 0x0077 |
| 1485 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', |
| 1486 |
'get_dpi_stages', 'set_dpi_stages', |
| 1487 |
'get_poll_rate', 'set_poll_rate', 'get_supported_poll_rates', |
| 1488 |
'get_idle_time', 'set_idle_time', |
| 1489 |
|
| 1490 |
'get_battery', 'is_charging', |
| 1491 |
'get_low_battery_threshold', 'set_low_battery_threshold'] |
| 1492 |
DEVICE_IMAGE = "https://dl.razerzone.com/src/3802-0-en-v1.png" |
| 1493 |
|
| 1494 |
DPI_MAX = 16000 |
| 1495 |
|
| 1496 |
POLL_RATES = [125, 500, 1000] |
| 1497 |
|
| 1498 |
|
| 1499 |
class RazerProClickWired(RazerProClickReceiver): |
| 1500 |
""" |
| 1501 |
Class for the Razer Pro Click (Wired) |
| 1502 |
""" |
| 1503 |
EVENT_FILE_REGEX = re.compile(r'.*1532_Razer_Pro_Click_000000000000-if0(1|2)-event-kbd') |
| 1504 |
USB_PID = 0x0080 |
| 1505 |
|
| 1506 |
|
| 1507 |
class RazerDeathAdderV2XHyperSpeed(__RazerDevice): |
| 1508 |
""" |
| 1509 |
Class for the Razer DeathAdder V2 X HyperSpeed |
| 1510 |
""" |
| 1511 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_DeathAdder_V2_X_HyperSpeed_000000000000-if0(1|2)-event-kbd') |
| 1512 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', |
| 1513 |
'get_poll_rate', 'set_poll_rate', |
| 1514 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold'] |
| 1515 |
|
| 1516 |
USB_VID = 0x1532 |
| 1517 |
USB_PID = 0x009C |
| 1518 |
DEVICE_IMAGE = "https://hybrismediaprod.blob.core.windows.net/sys-master-phoenix-images-container/he8/h51/9250345058334/deathadder-v2-x-hyperspeed-500x500.png" |
| 1519 |
|
| 1520 |
DPI_MAX = 14000 |
| 1521 |
|
| 1522 |
|
| 1523 |
class RazerNagaEpic(__RazerDevice): |
| 1524 |
""" |
| 1525 |
Class for the Razer Naga Epic |
| 1526 |
""" |
| 1527 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Razer_Naga_Epic-if01-event-kbd') |
| 1528 |
|
| 1529 |
USB_VID = 0x1532 |
| 1530 |
USB_PID = 0x001F |
| 1531 |
DEDICATED_MACRO_KEYS = True |
| 1532 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy_byte', 'set_dpi_xy_byte', 'get_poll_rate', 'set_poll_rate', |
| 1533 |
'get_scroll_brightness', 'set_scroll_brightness', 'set_scroll_none', 'set_scroll_static', 'set_scroll_spectrum', |
| 1534 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold'] |
| 1535 |
|
| 1536 |
DEVICE_IMAGE = "https://hwimg.nl/Razer_naga-epic.png" |
| 1537 |
|
| 1538 |
DPI_MAX = 5600 |
| 1539 |
|
| 1540 |
|
| 1541 |
class RazerViperV2ProWired(__RazerDevice): |
| 1542 |
""" |
| 1543 |
Class for the Razer Viper V2 Pro (Wired) |
| 1544 |
""" |
| 1545 |
EVENT_FILE_REGEX = re.compile(r'.*usb-Razer_Razer_Viper_V2_Pro_000000000000-if0(1|2)-event-kbd') |
| 1546 |
|
| 1547 |
USB_VID = 0x1532 |
| 1548 |
USB_PID = 0x00A5 |
| 1549 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', |
| 1550 |
'get_poll_rate', 'set_poll_rate', |
| 1551 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold'] |
| 1552 |
|
| 1553 |
DEVICE_IMAGE = "https://dl.razerzone.com/src/6048-1-en-v10.png" |
| 1554 |
|
| 1555 |
DPI_MAX = 30000 |
| 1556 |
|
| 1557 |
|
| 1558 |
class RazerViperV2ProWireless(RazerViperV2ProWired): |
| 1559 |
""" |
| 1560 |
Class for the Razer Viper V2 Pro (Wireless) |
| 1561 |
""" |
| 1562 |
|
| 1563 |
USB_PID = 0x00A6 |
| 1564 |
|
| 1565 |
|
| 1566 |
class RazerCobraProWired(__RazerDevice): |
| 1567 |
""" |
| 1568 |
Class for the Razer Cobra Pro (Wired) |
| 1569 |
""" |
| 1570 |
EVENT_FILE_REGEX = re.compile(r'.*usb-Razer_Razer_Cobra_Pro-if0(1|2)-event-kbd') |
| 1571 |
|
| 1572 |
USB_VID = 0x1532 |
| 1573 |
USB_PID = 0x00AF |
| 1574 |
|
| 1575 |
METHODS = ['get_device_type_mouse', |
| 1576 |
'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', |
| 1577 |
'get_poll_rate', 'set_poll_rate', |
| 1578 |
'get_brightness', 'set_brightness', |
| 1579 |
'get_logo_brightness', 'set_logo_brightness', |
| 1580 |
'get_scroll_brightness', 'set_scroll_brightness', |
| 1581 |
# All LEDs (partial support) |
| 1582 |
'set_static_effect', 'set_wave_effect', 'set_spectrum_effect', 'set_none_effect', |
| 1583 |
# Logo (partial support) |
| 1584 |
'set_logo_wave', 'set_logo_static', 'set_logo_spectrum', 'set_logo_none', |
| 1585 |
# Scroll wheel (partial support) |
| 1586 |
'set_scroll_wave', 'set_scroll_static', 'set_scroll_spectrum', 'set_scroll_none', |
| 1587 |
# Battery |
| 1588 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold'] |
| 1589 |
|
| 1590 |
DEVICE_IMAGE = "https://dl.razerzone.com/src2/13182/13182-1-en-v2.png" |
| 1591 |
|
| 1592 |
DPI_MAX = 30000 |
| 1593 |
|
| 1594 |
|
| 1595 |
class RazerCobraProWireless(RazerCobraProWired): |
| 1596 |
""" |
| 1597 |
Class for the Razer Cobra Pro (Wireless) |
| 1598 |
""" |
| 1599 |
USB_PID = 0x00B0 |
| 1600 |
|
| 1601 |
|
| 1602 |
class RazerDeathAdderV3(__RazerDevice): |
| 1603 |
""" |
| 1604 |
Class for the Razer DeathAdder V3 |
| 1605 |
""" |
| 1606 |
EVENT_FILE_REGEX = re.compile(r'.*usb-Razer_Razer_DeathAdder_V3-if0(1|2)-event-kbd') |
| 1607 |
|
| 1608 |
USB_VID = 0x1532 |
| 1609 |
USB_PID = 0x00B2 |
| 1610 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', |
| 1611 |
'get_poll_rate', 'set_poll_rate', 'get_supported_poll_rates'] |
| 1612 |
|
| 1613 |
POLL_RATES = [125, 500, 1000, 2000, 4000, 8000] |
| 1614 |
|
| 1615 |
DEVICE_IMAGE = "https://dl.razerzone.com/src/6124/6124-1-en-v2.png" |
| 1616 |
|
| 1617 |
DPI_MAX = 30000 |
| 1618 |
|
| 1619 |
|
| 1620 |
class RazerDeathAdderV3ProWired(__RazerDevice): |
| 1621 |
""" |
| 1622 |
Class for the Razer DeathAdder V3 Pro (Wired) |
| 1623 |
""" |
| 1624 |
EVENT_FILE_REGEX = re.compile(r'.*usb-Razer_Razer_DeathAdder_V3_Pro_000000000000-if0(1|2)-event-kbd') |
| 1625 |
|
| 1626 |
USB_VID = 0x1532 |
| 1627 |
USB_PID = 0x00B6 |
| 1628 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', |
| 1629 |
'get_poll_rate', 'set_poll_rate', |
| 1630 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold'] |
| 1631 |
|
| 1632 |
DEVICE_IMAGE = "https://dl.razerzone.com/src/6130/6130-1-en-v2.png" |
| 1633 |
|
| 1634 |
DPI_MAX = 35000 |
| 1635 |
|
| 1636 |
|
| 1637 |
class RazerDeathAdderV3ProWireless(RazerDeathAdderV3ProWired): |
| 1638 |
""" |
| 1639 |
Class for the Razer DeathAdder V3 Pro (Wireless) |
| 1640 |
""" |
| 1641 |
|
| 1642 |
USB_PID = 0x00B7 |
| 1643 |
|
| 1644 |
|
| 1645 |
class RazerDeathAdderV3ProWired_Alternate(RazerDeathAdderV3ProWired): |
| 1646 |
""" |
| 1647 |
Class for the Razer DeathAdder V3 Pro (Wired) |
| 1648 |
""" |
| 1649 |
USB_PID = 0x00C2 |
| 1650 |
|
| 1651 |
|
| 1652 |
class RazerDeathAdderV3ProWireless_Alternate(RazerDeathAdderV3ProWireless): |
| 1653 |
""" |
| 1654 |
Class for the Razer DeathAdder V3 Pro (Wireless) |
| 1655 |
""" |
| 1656 |
USB_PID = 0x00C3 |
| 1657 |
|
| 1658 |
|
| 1659 |
class RazerBasiliskV3ProWired(__RazerDevice): |
| 1660 |
""" |
| 1661 |
Class for the Razer Basilisk V3 Pro (Wired) |
| 1662 |
""" |
| 1663 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Basilisk_V3_Pro_000000000000-if0(1|2)-event-kbd') |
| 1664 |
|
| 1665 |
USB_VID = 0x1532 |
| 1666 |
USB_PID = 0x00AA |
| 1667 |
HAS_MATRIX = True |
| 1668 |
MATRIX_DIMS = [1, 13] |
| 1669 |
METHODS = ['get_device_type_mouse', |
| 1670 |
'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', |
| 1671 |
'get_poll_rate', 'set_poll_rate', |
| 1672 |
'get_brightness', 'set_brightness', |
| 1673 |
'get_logo_brightness', 'set_logo_brightness', |
| 1674 |
'get_scroll_brightness', 'set_scroll_brightness', |
| 1675 |
# Scroll wheel controls |
| 1676 |
'get_scroll_mode', 'set_scroll_mode', |
| 1677 |
'get_scroll_acceleration', 'set_scroll_acceleration', |
| 1678 |
'get_scroll_smart_reel', 'set_scroll_smart_reel', |
| 1679 |
# All LEDs (partial support) |
| 1680 |
'set_static_effect', 'set_wave_effect', 'set_spectrum_effect', 'set_none_effect', |
| 1681 |
# Logo (partial support) |
| 1682 |
'set_logo_wave', 'set_logo_static', 'set_logo_spectrum', 'set_logo_none', |
| 1683 |
# Scroll wheel (partial support) |
| 1684 |
'set_scroll_wave', 'set_scroll_static', 'set_scroll_spectrum', 'set_scroll_none', |
| 1685 |
# Can set custom matrix effects |
| 1686 |
'set_custom_effect', 'set_key_row', |
| 1687 |
# Battery |
| 1688 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold'] |
| 1689 |
|
| 1690 |
DEVICE_IMAGE = "https://dl.razerzone.com/src2/6220/6220-4-en-v1.png" |
| 1691 |
|
| 1692 |
DPI_MAX = 30000 |
| 1693 |
|
| 1694 |
|
| 1695 |
class RazerBasiliskV3ProWireless(RazerBasiliskV3ProWired): |
| 1696 |
""" |
| 1697 |
Class for the Razer Basilisk V3 Pro (Wireless) |
| 1698 |
""" |
| 1699 |
|
| 1700 |
USB_PID = 0x00AB |
| 1701 |
|
| 1702 |
|
| 1703 |
class RazerBasiliskV3Pro35KWired(__RazerDevice): |
| 1704 |
""" |
| 1705 |
Class for the Razer Basilisk V3 Pro 35K (Wired) |
| 1706 |
""" |
| 1707 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Basilisk_V3_Pro_35K_000000000000-if0(1|2)-event-kbd') |
| 1708 |
|
| 1709 |
USB_VID = 0x1532 |
| 1710 |
USB_PID = 0x00CC |
| 1711 |
HAS_MATRIX = True |
| 1712 |
MATRIX_DIMS = [1, 13] |
| 1713 |
METHODS = ['get_device_type_mouse', |
| 1714 |
'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', |
| 1715 |
'get_poll_rate', 'set_poll_rate', |
| 1716 |
'get_brightness', 'set_brightness', |
| 1717 |
'get_logo_brightness', 'set_logo_brightness', |
| 1718 |
'get_scroll_brightness', 'set_scroll_brightness', |
| 1719 |
# Scroll wheel controls |
| 1720 |
'get_scroll_mode', 'set_scroll_mode', |
| 1721 |
'get_scroll_acceleration', 'set_scroll_acceleration', |
| 1722 |
'get_scroll_smart_reel', 'set_scroll_smart_reel', |
| 1723 |
# All LEDs (partial support) |
| 1724 |
'set_static_effect', 'set_wave_effect', 'set_spectrum_effect', 'set_none_effect', |
| 1725 |
# Logo (partial support) |
| 1726 |
'set_logo_wave', 'set_logo_static', 'set_logo_spectrum', 'set_logo_none', |
| 1727 |
# Scroll wheel (partial support) |
| 1728 |
'set_scroll_wave', 'set_scroll_static', 'set_scroll_spectrum', 'set_scroll_none', |
| 1729 |
# Can set custom matrix effects |
| 1730 |
'set_custom_effect', 'set_key_row', |
| 1731 |
# Battery |
| 1732 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold'] |
| 1733 |
|
| 1734 |
DEVICE_IMAGE = "https://dl.razerzone.com/src2/14676/14676-1-en-v1.png" |
| 1735 |
|
| 1736 |
DPI_MAX = 35000 |
| 1737 |
|
| 1738 |
|
| 1739 |
class RazerBasiliskV3Pro35KWireless(RazerBasiliskV3Pro35KWired): |
| 1740 |
""" |
| 1741 |
Class for the Razer Basilisk V3 Pro 35K (Wireless) |
| 1742 |
""" |
| 1743 |
|
| 1744 |
USB_PID = 0x00CD |
| 1745 |
|
| 1746 |
|
| 1747 |
class RazerBasiliskV3Pro35KPhantomGreenEditionWired(__RazerDevice): |
| 1748 |
""" |
| 1749 |
Class for the Razer Basilisk V3 Pro 35K Phantom Green Edition (Wired) |
| 1750 |
""" |
| 1751 |
USB_VID = 0x1532 |
| 1752 |
USB_PID = 0x00D6 |
| 1753 |
HAS_MATRIX = True |
| 1754 |
MATRIX_DIMS = [1, 12] |
| 1755 |
METHODS = ['get_device_type_mouse', |
| 1756 |
'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', |
| 1757 |
'get_poll_rate', 'set_poll_rate', |
| 1758 |
'get_brightness', 'set_brightness', |
| 1759 |
'get_scroll_brightness', 'set_scroll_brightness', |
| 1760 |
# Scroll wheel controls |
| 1761 |
'get_scroll_mode', 'set_scroll_mode', |
| 1762 |
'get_scroll_acceleration', 'set_scroll_acceleration', |
| 1763 |
'get_scroll_smart_reel', 'set_scroll_smart_reel', |
| 1764 |
# All LEDs (partial support) |
| 1765 |
'set_static_effect', 'set_wave_effect', 'set_spectrum_effect', 'set_none_effect', |
| 1766 |
# Scroll wheel (partial support) |
| 1767 |
'set_scroll_wave', 'set_scroll_static', 'set_scroll_spectrum', 'set_scroll_none', |
| 1768 |
# Can set custom matrix effects |
| 1769 |
'set_custom_effect', 'set_key_row', |
| 1770 |
# Battery |
| 1771 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold'] |
| 1772 |
|
| 1773 |
DEVICE_IMAGE = "https://medias-p1.phoenix.razer.com/sys-master-phoenix-images-container/haa/h04/9917236707358/250605-basilisk-v3-pro-35k-phantom-green-1500x1000-4.jpg" |
| 1774 |
|
| 1775 |
DPI_MAX = 35000 |
| 1776 |
|
| 1777 |
|
| 1778 |
class RazerBasiliskV3Pro35KPhantomGreenEditionWireless(RazerBasiliskV3Pro35KPhantomGreenEditionWired): |
| 1779 |
""" |
| 1780 |
Class for the Razer Basilisk V3 Pro 35K Phantom Green Edition (Wireless) |
| 1781 |
""" |
| 1782 |
|
| 1783 |
USB_PID = 0x00D7 |
| 1784 |
|
| 1785 |
|
| 1786 |
class RazerBasiliskV3_35K(__RazerDevice): |
| 1787 |
""" |
| 1788 |
Class for the Razer Basilisk V3 35K |
| 1789 |
""" |
| 1790 |
|
| 1791 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Basilisk_V3_35K-if0(1|2)-event-kbd') |
| 1792 |
|
| 1793 |
USB_VID = 0x1532 |
| 1794 |
USB_PID = 0x00CB |
| 1795 |
HAS_MATRIX = True |
| 1796 |
MATRIX_DIMS = [1, 13] |
| 1797 |
METHODS = ['get_device_type_mouse', |
| 1798 |
'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', |
| 1799 |
'get_poll_rate', 'set_poll_rate', |
| 1800 |
'get_brightness', 'set_brightness', |
| 1801 |
'get_logo_brightness', 'set_logo_brightness', |
| 1802 |
'get_scroll_brightness', 'set_scroll_brightness', |
| 1803 |
# Scroll wheel controls |
| 1804 |
'get_scroll_mode', 'set_scroll_mode', |
| 1805 |
'get_scroll_acceleration', 'set_scroll_acceleration', |
| 1806 |
'get_scroll_smart_reel', 'set_scroll_smart_reel', |
| 1807 |
# All LEDs (partial support) |
| 1808 |
'set_static_effect', 'set_wave_effect', 'set_spectrum_effect', 'set_none_effect', |
| 1809 |
# Logo (partial support) |
| 1810 |
'set_logo_wave', 'set_logo_static', 'set_logo_spectrum', 'set_logo_none', |
| 1811 |
# Scroll wheel (partial support) |
| 1812 |
'set_scroll_wave', 'set_scroll_static', 'set_scroll_spectrum', 'set_scroll_none', |
| 1813 |
# Can set custom matrix effects |
| 1814 |
'set_custom_effect', 'set_key_row'] |
| 1815 |
|
| 1816 |
DEVICE_IMAGE = "https://hybrismediaprod.blob.core.windows.net/sys-master-phoenix-images-container/he4/h63/9822107926558/basilisk-v3-35k-2-500x500.png" |
| 1817 |
|
| 1818 |
DPI_MAX = 35000 |
| 1819 |
|
| 1820 |
|
| 1821 |
class RazerHyperPollingWirelessDongle(__RazerDevice): |
| 1822 |
""" |
| 1823 |
Class for the Razer HyperPolling Wireless Dongle |
| 1824 |
""" |
| 1825 |
|
| 1826 |
EVENT_FILE_REGEX = re.compile(r'.*usb-Razer_Razer_HyperPolling_Wireless_Dongle-if0(1|2)-event-kbd') |
| 1827 |
|
| 1828 |
USB_VID = 0x1532 |
| 1829 |
USB_PID = 0x00B3 |
| 1830 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', |
| 1831 |
'get_poll_rate', 'set_poll_rate', 'get_supported_poll_rates', |
| 1832 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold', |
| 1833 |
'set_hyperpolling_wireless_dongle_indicator_led_mode', 'set_hyperpolling_wireless_dongle_pair', 'set_hyperpolling_wireless_dongle_unpair'] |
| 1834 |
|
| 1835 |
POLL_RATES = [125, 500, 1000, 2000, 4000, 8000] |
| 1836 |
|
| 1837 |
DEVICE_IMAGE = "https://dl.razerzone.com/src/6141/6141-1-en-v1.png" # HyperPolling Wireless Dongle |
| 1838 |
|
| 1839 |
# TODO: After pairing, should find a way to use the image of the mouse instead of the dongle |
| 1840 |
# DEVICE_IMAGE_DAV3PRO = "https://dl.razerzone.com/src/6130/6130-1-en-v2.png" # DeathAdder V3 Pro |
| 1841 |
# DEVICE_IMAGE_VIPERV2PRO = "https://dl.razerzone.com/src/6048-1-en-v10.png" # Viper V2 Pro |
| 1842 |
|
| 1843 |
DPI_MAX = 30000 |
| 1844 |
|
| 1845 |
|
| 1846 |
class RazerProClickMiniReceiver(__RazerDevice): |
| 1847 |
""" |
| 1848 |
Class for the Razer Pro Click Mini (Receiver) |
| 1849 |
""" |
| 1850 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_ProClickM-if0(1|2)-event-kbd') |
| 1851 |
USB_VID = 0x1532 |
| 1852 |
USB_PID = 0x009A |
| 1853 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', |
| 1854 |
'get_dpi_stages', 'set_dpi_stages', |
| 1855 |
'get_poll_rate', 'set_poll_rate', 'get_supported_poll_rates', |
| 1856 |
'get_idle_time', 'set_idle_time', |
| 1857 |
'get_battery', 'is_charging', |
| 1858 |
'get_low_battery_threshold', 'set_low_battery_threshold'] |
| 1859 |
DEVICE_IMAGE = "https://dl.razerzone.com/src/5763/5763-1-en-v1.png" |
| 1860 |
|
| 1861 |
DPI_MAX = 12000 |
| 1862 |
|
| 1863 |
POLL_RATES = [125, 500, 1000] |
| 1864 |
|
| 1865 |
|
| 1866 |
class RazerDeathAdderV2Lite(__RazerDevice): |
| 1867 |
""" |
| 1868 |
Class for the Razer DeathAdder V2 Lite |
| 1869 |
""" |
| 1870 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_DeathAdder_V2_Lite-if0(1|2)-event-kbd') |
| 1871 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', |
| 1872 |
'get_dpi_stages', 'set_dpi_stages', |
| 1873 |
'get_poll_rate', 'set_poll_rate', |
| 1874 |
'get_logo_brightness', 'set_logo_brightness', |
| 1875 |
# Logo |
| 1876 |
'set_logo_static', 'set_logo_spectrum', 'set_logo_none', 'set_logo_reactive', |
| 1877 |
'set_logo_breath_random', 'set_logo_breath_single', 'set_logo_breath_dual', |
| 1878 |
# Custom frame |
| 1879 |
'set_custom_effect', 'set_key_row'] |
| 1880 |
|
| 1881 |
USB_VID = 0x1532 |
| 1882 |
USB_PID = 0x00A1 |
| 1883 |
HAS_MATRIX = True |
| 1884 |
MATRIX_DIMS = [1, 1] |
| 1885 |
DEVICE_IMAGE = "https://assets.razerzone.com/eeimages/support/products/1692/deathadder-v2-mini.png" |
| 1886 |
|
| 1887 |
DPI_MAX = 8500 |
| 1888 |
|
| 1889 |
|
| 1890 |
class RazerCobra(__RazerDevice): |
| 1891 |
""" |
| 1892 |
Class for the Razer Cobra |
| 1893 |
""" |
| 1894 |
EVENT_FILE_REGEX = re.compile(r'.*usb-Razer_Razer_Cobra-if0(1|2)-event-kbd') |
| 1895 |
|
| 1896 |
USB_VID = 0x1532 |
| 1897 |
USB_PID = 0x00A3 |
| 1898 |
METHODS = ['get_device_type_mouse', |
| 1899 |
'max_dpi', 'get_dpi_xy', 'set_dpi_xy', |
| 1900 |
'get_dpi_stages', 'set_dpi_stages', |
| 1901 |
'get_poll_rate', 'set_poll_rate', 'get_supported_poll_rates', |
| 1902 |
# Logo |
| 1903 |
'get_logo_brightness', 'set_logo_brightness', |
| 1904 |
'set_logo_breath_random', 'set_logo_breath_dual', 'set_logo_breath_single', |
| 1905 |
'set_logo_reactive', 'set_logo_spectrum', 'set_logo_static', 'set_logo_none'] |
| 1906 |
|
| 1907 |
DEVICE_IMAGE = "https://hybrismediaprod.blob.core.windows.net/sys-master-phoenix-images-container/h54/h60/9591466950686/cobra-500x500.png" |
| 1908 |
|
| 1909 |
POLL_RATES = [125, 500, 1000] |
| 1910 |
DPI_MAX = 8500 |
| 1911 |
|
| 1912 |
|
| 1913 |
class RazerNagaV2HyperSpeedReceiver(__RazerDevice): |
| 1914 |
""" |
| 1915 |
Class for the Razer Naga V2 HyperSpeed (Receiver) |
| 1916 |
""" |
| 1917 |
EVENT_FILE_REGEX = re.compile(r'.*usb-Razer_Razer_Naga_V2_HyperSpeed_000000000000-if0(1|2)-event-kbd') |
| 1918 |
|
| 1919 |
USB_VID = 0x1532 |
| 1920 |
USB_PID = 0x00B4 |
| 1921 |
HAS_MATRIX = False |
| 1922 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', |
| 1923 |
'get_poll_rate', 'set_poll_rate', |
| 1924 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold'] |
| 1925 |
|
| 1926 |
DEVICE_IMAGE = "https://hybrismediaprod.blob.core.windows.net/sys-master-phoenix-images-container%2Fh4c%2Fh44%2F9451887460382%2Fnaga-v2-hyperspeed-500x500.png" |
| 1927 |
|
| 1928 |
DPI_MAX = 30000 |
| 1929 |
|
| 1930 |
|
| 1931 |
class RazerViperV3HyperSpeed(__RazerDevice): |
| 1932 |
""" |
| 1933 |
Class for the Razer Viper V3 HyperSpeed |
| 1934 |
""" |
| 1935 |
EVENT_FILE_REGEX = re.compile(r'.*usb-Razer_Razer_Viper_V3_HyperSpeed_000000000000-if0(1|2)-event-kbd') |
| 1936 |
|
| 1937 |
USB_VID = 0x1532 |
| 1938 |
USB_PID = 0x00B8 |
| 1939 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', |
| 1940 |
'get_poll_rate', 'set_poll_rate', |
| 1941 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold'] |
| 1942 |
|
| 1943 |
DEVICE_IMAGE = "https://dl.razerzone.com/src2/13432/13432-1-en-v3.png" |
| 1944 |
|
| 1945 |
DPI_MAX = 30000 |
| 1946 |
|
| 1947 |
|
| 1948 |
class RazerBasiliskV3XHyperSpeed(__RazerDevice): |
| 1949 |
""" |
| 1950 |
Class for the Razer Basilisk V3 X HyperSpeed |
| 1951 |
""" |
| 1952 |
EVENT_FILE_REGEX = re.compile(r'.*usb-Razer_Razer_Basilisk_V3_X_HyperSpeed_000000000000-if0(1|2)-event-kbd') |
| 1953 |
|
| 1954 |
USB_VID = 0x1532 |
| 1955 |
USB_PID = 0x00B9 |
| 1956 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', |
| 1957 |
'get_poll_rate', 'set_poll_rate', |
| 1958 |
# Battery |
| 1959 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold', |
| 1960 |
# Scroll wheel |
| 1961 |
'get_scroll_brightness', 'set_scroll_brightness', |
| 1962 |
'set_scroll_wave', 'set_scroll_static', 'set_scroll_spectrum', 'set_scroll_none', 'set_scroll_reactive', 'set_scroll_breath_random', 'set_scroll_breath_single', 'set_scroll_breath_dual'] |
| 1963 |
|
| 1964 |
DEVICE_IMAGE = "https://dl.razerzone.com/src2/9766/9766-1-en-v1.png" |
| 1965 |
DRIVER_MODE = True |
| 1966 |
|
| 1967 |
DPI_MAX = 18000 |
| 1968 |
|
| 1969 |
|
| 1970 |
class RazerBasiliskMobileWired(__RazerDevice): |
| 1971 |
""" |
| 1972 |
Class for the Razer Basilisk Mobile (Wired) |
| 1973 |
""" |
| 1974 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Razer_Basilisk_Mobile-if0(1|2)-event-kbd') |
| 1975 |
|
| 1976 |
USB_VID = 0x1532 |
| 1977 |
USB_PID = 0x00D3 |
| 1978 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', |
| 1979 |
'get_poll_rate', 'set_poll_rate', |
| 1980 |
# Battery |
| 1981 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold', |
| 1982 |
# Logo LED |
| 1983 |
'get_brightness', 'set_brightness', |
| 1984 |
'set_static_effect', 'set_none_effect'] |
| 1985 |
|
| 1986 |
DEVICE_IMAGE = "https://dl.razerzone.com/src2/15485/15485-1-en-v2.png" |
| 1987 |
|
| 1988 |
DPI_MAX = 18000 |
| 1989 |
|
| 1990 |
|
| 1991 |
class RazerBasiliskMobileReceiver(RazerBasiliskMobileWired): |
| 1992 |
""" |
| 1993 |
Class for the Razer Basilisk Mobile (Receiver) |
| 1994 |
""" |
| 1995 |
EVENT_FILE_REGEX = re.compile(r'.*Razer_Razer_Basilisk_Mobile_000000000000-if0(1|2)-event-kbd') |
| 1996 |
|
| 1997 |
USB_PID = 0x00D4 |
| 1998 |
|
| 1999 |
|
| 2000 |
class RazerDeathAdderV4ProWired(__RazerDevice): |
| 2001 |
""" |
| 2002 |
Class for the Razer DeathAdder V4 Pro (Wired) |
| 2003 |
""" |
| 2004 |
EVENT_FILE_REGEX = re.compile(r'.*usb-Razer_DeathAdder_V4_Pro_[0-9A-F]+-if0(1|2)-event-kbd') |
| 2005 |
|
| 2006 |
USB_VID = 0x1532 |
| 2007 |
USB_PID = 0x00BE |
| 2008 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', |
| 2009 |
'get_poll_rate', 'set_poll_rate', 'get_supported_poll_rates', |
| 2010 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold'] |
| 2011 |
|
| 2012 |
DEVICE_IMAGE = "https://medias-p1.phoenix.razer.com/sys-master-phoenix-images-container/h01/hf3/9926511951902/deathadder-v4-pro-black-500x500.png" |
| 2013 |
|
| 2014 |
POLL_RATES = [125, 500, 1000, 2000, 4000, 8000] |
| 2015 |
DPI_MAX = 45000 |
| 2016 |
|
| 2017 |
|
| 2018 |
class RazerDeathAdderV4ProWireless(RazerDeathAdderV4ProWired): |
| 2019 |
""" |
| 2020 |
Class for the Razer DeathAdder V4 Pro (Wireless) |
| 2021 |
""" |
| 2022 |
USB_PID = 0x00BF |
| 2023 |
|
| 2024 |
|
| 2025 |
class RazerViperV3ProWired(__RazerDevice): |
| 2026 |
""" |
| 2027 |
Class for the Razer Viper V3 Pro (Wired) |
| 2028 |
""" |
| 2029 |
EVENT_FILE_REGEX = re.compile(r'.*usb-Razer_Razer_Viper_V3_Pro-if0(1|2)-event-kbd') |
| 2030 |
|
| 2031 |
USB_VID = 0x1532 |
| 2032 |
USB_PID = 0x00C0 |
| 2033 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', |
| 2034 |
'get_poll_rate', 'set_poll_rate', 'get_supported_poll_rates', |
| 2035 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold'] |
| 2036 |
|
| 2037 |
DEVICE_IMAGE = "https://dl.razerzone.com/src2/14044/14044-1-en-v1.png" |
| 2038 |
|
| 2039 |
POLL_RATES = [125, 500, 1000] |
| 2040 |
DPI_MAX = 35000 |
| 2041 |
|
| 2042 |
|
| 2043 |
class RazerViperV3ProWireless(RazerViperV3ProWired): |
| 2044 |
""" |
| 2045 |
Class for the Razer Viper V3 Pro (Wireless) |
| 2046 |
""" |
| 2047 |
|
| 2048 |
USB_PID = 0x00C1 |
| 2049 |
|
| 2050 |
METHODS = RazerViperV3ProWired.METHODS + ['set_hyperpolling_wireless_dongle_indicator_led_mode'] |
| 2051 |
|
| 2052 |
POLL_RATES = [125, 500, 1000, 2000, 4000, 8000] |
| 2053 |
|
| 2054 |
|
| 2055 |
class RazerDeathAdderV3HyperSpeedWired(__RazerDevice): |
| 2056 |
""" |
| 2057 |
Class for the Razer DeathAdder V3 HyperSpeed (Wired) |
| 2058 |
""" |
| 2059 |
EVENT_FILE_REGEX = re.compile(r'.*usb-Razer_Razer_DeathAdder_V3_HyperSpeed_000000000000-if0(1|2)-event-kbd') |
| 2060 |
|
| 2061 |
USB_VID = 0x1532 |
| 2062 |
USB_PID = 0x00C4 |
| 2063 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', 'get_dpi_stages', 'set_dpi_stages', |
| 2064 |
'get_poll_rate', 'set_poll_rate', |
| 2065 |
# Battery |
| 2066 |
'get_battery', 'is_charging', 'get_idle_time', 'set_idle_time', 'get_low_battery_threshold', 'set_low_battery_threshold'] |
| 2067 |
|
| 2068 |
DEVICE_IMAGE = "https://dl.razerzone.com/src/6124/6124-1-en-v2.png" |
| 2069 |
|
| 2070 |
DPI_MAX = 26000 |
| 2071 |
|
| 2072 |
|
| 2073 |
class RazerDeathAdderV3HyperSpeedWireless(RazerDeathAdderV3HyperSpeedWired): |
| 2074 |
""" |
| 2075 |
Class for the Razer DeathAdder V3 HyperSpeed (Wireless) |
| 2076 |
""" |
| 2077 |
|
| 2078 |
USB_PID = 0x00C5 |
| 2079 |
|
| 2080 |
|
| 2081 |
class RazerProClickV2VerticalEditionWired(__RazerDevice): |
| 2082 |
""" |
| 2083 |
Class for the Razer Pro Click V2 Vertical Edition (Wired) |
| 2084 |
""" |
| 2085 |
EVENT_FILE_REGEX = re.compile(r'.*usb-Razer_Razer_Pro_Click_V2_Vertical_Edition-if0(1|2)-event-kbd') |
| 2086 |
USB_VID = 0x1532 |
| 2087 |
USB_PID = 0x00C7 |
| 2088 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', |
| 2089 |
'get_dpi_stages', 'set_dpi_stages', |
| 2090 |
'get_poll_rate', 'set_poll_rate', 'get_supported_poll_rates', |
| 2091 |
'get_idle_time', 'set_idle_time', |
| 2092 |
'get_battery', 'is_charging', |
| 2093 |
'get_low_battery_threshold', 'set_low_battery_threshold', |
| 2094 |
'get_brightness', 'set_brightness', 'set_static_effect', 'set_wave_effect', 'set_spectrum_effect', 'set_none_effect'] |
| 2095 |
DEVICE_IMAGE = "https://dl.razerzone.com/src2/15010/15010-1-en-v1.png" |
| 2096 |
|
| 2097 |
DPI_MAX = 30000 |
| 2098 |
|
| 2099 |
POLL_RATES = [125, 250, 500, 1000] |
| 2100 |
|
| 2101 |
|
| 2102 |
class RazerProClickV2VerticalEditionWireless(RazerProClickV2VerticalEditionWired): |
| 2103 |
""" |
| 2104 |
Class for the Razer Pro Click V2 Vertical Edition (Wireless) |
| 2105 |
""" |
| 2106 |
USB_PID = 0x00C8 |
| 2107 |
|
| 2108 |
|
| 2109 |
class RazerProClickV2Wired(__RazerDevice): |
| 2110 |
""" |
| 2111 |
Class for the Razer Pro Click V2 (Wired) |
| 2112 |
""" |
| 2113 |
EVENT_FILE_REGEX = re.compile(r'.*usb-Razer_Razer_Pro_Click_V2-if0(1|2)-event-kbd') |
| 2114 |
USB_VID = 0x1532 |
| 2115 |
USB_PID = 0x00D0 |
| 2116 |
METHODS = ['get_device_type_mouse', 'max_dpi', 'get_dpi_xy', 'set_dpi_xy', |
| 2117 |
'get_dpi_stages', 'set_dpi_stages', |
| 2118 |
'get_poll_rate', 'set_poll_rate', 'get_supported_poll_rates', |
| 2119 |
'get_idle_time', 'set_idle_time', |
| 2120 |
'get_battery', 'is_charging', |
| 2121 |
'get_low_battery_threshold', 'set_low_battery_threshold', |
| 2122 |
'get_brightness', 'set_brightness', 'set_static_effect', 'set_wave_effect', 'set_spectrum_effect', 'set_none_effect'] |
| 2123 |
DEVICE_IMAGE = "https://medias-p1.phoenix.razer.com/sys-master-phoenix-images-container/ha3/h76/9899953717278/pro-click-v2-black-500x500.png" |
| 2124 |
|
| 2125 |
DPI_MAX = 30000 |
| 2126 |
|
| 2127 |
POLL_RATES = [125, 250, 500, 1000] |
| 2128 |
|
| 2129 |
|
| 2130 |
class RazerProClickV2Wireless(RazerProClickV2Wired): |
| 2131 |
""" |
| 2132 |
Class for the Razer Pro Click V2 (Wireless) |
| 2133 |
""" |
| 2134 |
USB_PID = 0x00D1 |