DrLty
V2EX  ›  Android

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

  •  
  •   DrLty · Oct 26, 2022 · 12098 views
    This topic created in 1302 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   ·   5310 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 07:01 · PVG 15:01 · LAX 00:01 · JFK 03:01
    ♥ Do have faith in what you're doing.