core tweak
This commit is contained in:
parent
1212d9b1c1
commit
ff5798399e
@ -31,7 +31,7 @@ impl KeyboardAggregator {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if self.dev_mode && !events.is_empty() {
|
if self.dev_mode && !events.is_empty() {
|
||||||
info!("{} kbd evts from {}", events.len(), self.dev.name().unwrap_or("?"));
|
debug!("{} kbd evts from {}", events.len(), self.dev.name().unwrap_or("?"));
|
||||||
}
|
}
|
||||||
|
|
||||||
for ev in events {
|
for ev in events {
|
||||||
|
|||||||
@ -50,8 +50,8 @@ printf '\x05\x01\x09\x06\xa1\x01\x05\x07\x19\xe0\x29\xe7\x15\x00\x25\x01'\
|
|||||||
|
|
||||||
# ----------------------- HID mouse (usb1) --------------------------
|
# ----------------------- HID mouse (usb1) --------------------------
|
||||||
mkdir -p "$G/functions/hid.usb1"
|
mkdir -p "$G/functions/hid.usb1"
|
||||||
echo 0 > "$G/functions/hid.usb1/protocol" # Boot mouse
|
echo 2 > "$G/functions/hid.usb1/protocol" # Boot mouse
|
||||||
echo 0 > "$G/functions/hid.usb1/subclass"
|
echo 1 > "$G/functions/hid.usb1/subclass"
|
||||||
echo 4 > "$G/functions/hid.usb1/report_length"
|
echo 4 > "$G/functions/hid.usb1/report_length"
|
||||||
|
|
||||||
# 3 buttons, X, Y, Wheel → total 4 bytes
|
# 3 buttons, X, Y, Wheel → total 4 bytes
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user