mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-03-15 07:26:44 +08:00
fix: 补齐 ATX 控制器缺失接口并完成全项目 clippy -D warnings 修复
This commit is contained in:
@@ -729,7 +729,7 @@ impl Connection {
|
||||
}
|
||||
|
||||
// Check if client sent supported_decoding with a codec preference
|
||||
if let Some(ref supported_decoding) = opt.supported_decoding.as_ref() {
|
||||
if let Some(supported_decoding) = opt.supported_decoding.as_ref() {
|
||||
let prefer = supported_decoding.prefer.value();
|
||||
debug!("Client codec preference: prefer={}", prefer);
|
||||
|
||||
@@ -1352,8 +1352,12 @@ impl Connection {
|
||||
debug!("Mouse event: x={}, y={}, mask={}", me.x, me.y, me.mask);
|
||||
|
||||
// Convert RustDesk mouse event to One-KVM mouse events
|
||||
let mouse_events =
|
||||
convert_mouse_event(me, self.screen_width, self.screen_height, self.relative_mouse_active);
|
||||
let mouse_events = convert_mouse_event(
|
||||
me,
|
||||
self.screen_width,
|
||||
self.screen_height,
|
||||
self.relative_mouse_active,
|
||||
);
|
||||
|
||||
// Send to HID controller if available
|
||||
if let Some(ref hid) = self.hid {
|
||||
@@ -1616,7 +1620,10 @@ async fn run_video_streaming(
|
||||
);
|
||||
}
|
||||
if let Err(e) = video_manager.request_keyframe().await {
|
||||
debug!("Failed to request keyframe for connection {}: {}", conn_id, e);
|
||||
debug!(
|
||||
"Failed to request keyframe for connection {}: {}",
|
||||
conn_id, e
|
||||
);
|
||||
}
|
||||
|
||||
// Inner loop: receives frames from current subscription
|
||||
|
||||
Reference in New Issue
Block a user