mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-04 16:35:19 +00:00
Refact/android input changed notify clients (#8494)
* refact: android, input control changed, notify clients Signed-off-by: fufesou <linlong1266@gmail.com> * fix: android init input perm Signed-off-by: fufesou <linlong1266@gmail.com> --------- Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
1 parent
9c7d4ef1f7
commit
b047730830
5 files changed
+31
No files matched your search
@@ -400,6 +400,9 @@ impl Connection {
|
||||
}
|
||||
#[cfg(target_os = "android")]
|
||||
start_channel(rx_to_cm, tx_from_cm);
|
||||
#[cfg(target_os = "android")]
|
||||
conn.send_permission(Permission::Keyboard, conn.keyboard).await;
|
||||
#[cfg(not(target_os = "android"))]
|
||||
if !conn.keyboard {
|
||||
conn.send_permission(Permission::Keyboard, false).await;
|
||||
}
|
||||
@@ -457,6 +460,11 @@ impl Connection {
|
||||
conn.on_close("connection manager", true).await;
|
||||
break;
|
||||
}
|
||||
#[cfg(target_os = "android")]
|
||||
ipc::Data::InputControl(v) => {
|
||||
conn.keyboard = v;
|
||||
conn.send_permission(Permission::Keyboard, v).await;
|
||||
}
|
||||
ipc::Data::CmErr(e) => {
|
||||
if e != "expected" {
|
||||
// cm closed before connection
|
||||
|
||||
Reference in new issue
Block a user