V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
DrLty
V2EX  ›  Android

[求助] 使用 uinput 创建虚拟触屏时,可以指定显示器吗?

  •  
  •   DrLty · Oct 26, 2022 · 12066 views
    This topic created in 1290 days ago, the information mentioned may be changed or developed.

    在写的一个小项目go-touch-mapper

    adb shell 或者 su 下,使用 Uinput 创建一个虚拟触屏来控制手机

    想控制外接显示器,目前的办法是用 inputManager 来指定 displayID

    但是这样就要额外开一个 java 程序然后 IPC 通信控制

    有办法在创建虚拟触屏的时候就指定显示器吗?

    1 replies    2022-10-26 13:02:33 +08:00
    youstu
        1
    youstu  
       Oct 26, 2022
    你可以设定虚拟屏是 USB 接口的,然后在多显的情况下,USB 输入设备默认就是分发到外接显示屏的。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4074 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 00:53 · PVG 08:53 · LAX 17:53 · JFK 20:53
    ♥ Do have faith in what you're doing.