mirror of
https://github.com/AkiChase/scrcpy-mask
synced 2024-11-13 04:21:26 +08:00
.github | ||
public | ||
src | ||
src-tauri | ||
.gitignore | ||
index.html | ||
LICENSE | ||
package.json | ||
publish.js | ||
README.md | ||
tsconfig.json | ||
tsconfig.node.json | ||
vite.config.ts |
Scrcpy-mask
A Scrcpy client in Rust & Tarui aimed at providing mouse and key mapping to control Android device.
Due to the delay and blurred image quality of the mirror screen. This project found another way, directly abandoned the mirror screen, and instead used a transparent mask to display the screen content behind the window, which fundamentally put an end to the delay in casting the screen.
Features
- Wired and wireless connections to Android devices
- Start scrcpy-server and connect to it
- Implement scrcpy client control protocol
- Mouse and keyboard key mapping
- Visually setting the mapping
- Key mapping config import and export
- Update check
- Internationalization (i18n)
- Switch between key mapping and raw input
- Gamepad key mapping
- Better macro support
- Provide external interface through websocket
- Help document
Demonstration video
- M 系列 Mac 电脑玩王者,暃排位实录,使用 Android Stuido 模拟器和开源 Scrcpy Mask 按键映射工具-哔哩哔哩
- 自制跨平台开源项目 Scrcpy Mask ,像模拟器一样用键鼠控制任意安卓设备!以 M 系列芯片 MacBook 打王者为例-哔哩哔哩
- 如何用 PC 控制安卓手机打王者?只要思想不滑坡,办法总比困难多!-哔哩哔哩
- M 芯片 Mac 怎么用 Android Studio 模拟器打王者?这是 Up 耗时数个月给出的答案-哔哩哔哩
Screenshot
- Device control
- Key mapping setting
- Mask above game
Basic using
- Install software suitable for your system platform from releases
- Identify your Android device type
- For physical devices like phones or tablets
- You need to solve the problem of screen casting on your own. Recommend using the official screen mirror method of your device brand to achieve the minimum delay
- Enable ADB debugging on your device via USB or wirelessly, then connect it to your computer.
- For emulator, you don't need screen mirror, and emulator generally default to enabling ADB wired debugging. So this is the best way for game, I think.
- For physical devices like phones or tablets
- Launch the software and navigate to the Device page.
- Find your device among the available devices (if not found, please search for how to enable ADB debugging for your device).
- Right-click on your device and choose "Get Screen Size". Use the obtained screen size as a reference and enter the device's width and height correctly. Note: If the width or height is incorrect (for example, they are reversed in portrait and landscape modes), all touch operations will be ignored, but no error message will appear.
- Right-click on your device again and choose "Control this device".
- Navigate to the Settings page -> Mask Settings, and set the width and height of the mask to a certain multiple of the device's size to ensure the mask size is appropriate.
- Navigate to the Mask page where you can see a transparent mask. Next, adjust and move your emulator window or screen mirroring window to align the displayed content area with the transparent mask area.
- Navigate to the Key mapping page and switch or edit the key mapping configs.
- Return to the Mask page and start enjoying.
Contribution.
If you are interested in this project, you are welcome to submit pull request or issue. But my time and energy is limited, so I may not be able to deal with it all.