Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0181d61 authored by Vaibhav Devmurari's avatar Vaibhav Devmurari
Browse files

Add Razer and Glorious O2 wireless mice to blocklist

Bug: 391675407
Test: manually connecting the mice
Test: atest --host libinput_rust_test
Flag: EXEMPT config change
Change-Id: I8b7d2465130fd20fd214b601808c82e2846c12ff
parent 7878e9de
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -20,6 +20,15 @@ use crate::input::KeyboardType;
//  key events at all. (Requires setup allowing InputDevice to dynamically add/remove
//  KeyboardInputMapper based on blocklist and KeyEvents in case a KeyboardType::None device ends
//  up producing a key event)

/// This list pre-classifies a device into Alphabetic/Non-Alphabetic keyboard and tells us whether
/// further re-classification should be allowed or not (using is_finalized value).
/// This list DOES NOT change the source of the device or change the input mappers associated with
/// the device. It only changes the "KeyboardType" classification. This list should be primarily
/// used to pre-classify devices that are NOT keyboards(like mice, game pads, etc.) but generate
/// evdev nodes that say that they are alphabetic keyboards.
///
/// NOTE: Pls keep the list sorted by vendor id and product id for easy searching.
pub static CLASSIFIED_DEVICES: &[(
    /* vendorId */ u16,
    /* productId */ u16,
@@ -96,6 +105,8 @@ pub static CLASSIFIED_DEVICES: &[(
    (0x056e, 0x0159, KeyboardType::NonAlphabetic, true),
    // Zebra LS2208 barcode scanner
    (0x05e0, 0x1200, KeyboardType::NonAlphabetic, true),
    // Glorious O2 Wireless
    (0x093a, 0x822d, KeyboardType::NonAlphabetic, true),
    // RDing FootSwitch1F1
    (0x0c45, 0x7403, KeyboardType::NonAlphabetic, true),
    // SteelSeries Sensei RAW Frost Blue
@@ -108,6 +119,8 @@ pub static CLASSIFIED_DEVICES: &[(
    (0x1050, 0x0010, KeyboardType::NonAlphabetic, true),
    // Yubico.com Yubikey 4 OTP+U2F+CCID
    (0x1050, 0x0407, KeyboardType::NonAlphabetic, true),
    // Razer DeathAdder Essential
    (0x1532, 0x0098, KeyboardType::NonAlphabetic, true),
    // Lenovo USB-C Wired Compact Mouse
    (0x17ef, 0x6123, KeyboardType::NonAlphabetic, true),
    // Corsair Katar Pro Wireless (USB dongle)