Comments (10)
I have to use scrcpy's scrcpy-server Input.java to create a socket to pass she'll input events. The current adb shell input does a lot of checos, for eg: check if device is connected, copy the process to mobile, start an Android server daemon, and then run the process and then wait for the process to finish on Android and then send the complete signal to the PC. This is quite complicated and takes approxately 1.5 seconds. Rather, only one server can be started, and then only the input processes can be sent over the tunnel. I am bad at networking and Java, so it's quite complicated to understand Java or Sockets. If you have any clue, I would be glad to use it.
See Scrcpy's issue Genymobile/scrcpy#231 (comment)
from guiscrcpy.
any news about this ?
from guiscrcpy.
@karousn Maybe I will finish that by this weekend. I apologize for the delay
from guiscrcpy.
@karousn I fixed the mapper, can you please test it?
from guiscrcpy.
The last tag i can get it is 3.4 so i try it and i have this message:
Waiting for device
Device : OK!
['1440', '2960\nOverride size'] DIMENSIONS
LOG: Key:Pos JSON Configuration file found in /home/user/.config/guiscrcpy/ directory
KEY:A {'key': [], 'pos': []}
[SERVER] LISTENING VALUES: Your keys are being listened by server.
{'key': [], 'pos': []}
from guiscrcpy.
@karousn can you try out 2583d1f
I can provide some help if you let me know the method you are following to test changes
from guiscrcpy.
To do the test i do:
git checkout 2583d1f
sudo pip3 uninstall guiscrcpy
python3 setup.py install --user
When i try to use guiscrcpy directly in any folder i have ModuleNotFoundError: No module named 'PyQt5.sip'
as message error so i use python -m guiscrcpy
or python scripts/guiscrcpy
before that i activate the Pointer location on my phone to see the coordination of my click, and i modify the json keymapper file directly and i restart my guiscrcpy after that in each modification.( it was crashing some time.. i use force quit to exit).
i see that you use adb shell input tap X Y
to send the event of click to my phone, it is a little bit slow specially in gaming. if you have any idea how can i improve that.
from guiscrcpy.
i see that you use adb shell input tap X Y to send the event of click to my phone, it is a little bit slow specially in gaming. if you have any idea how can i improve that.
I will have to use scrcpy's fast adb shellinput's but i have 0 Java background, am still 17 lol
pip3 install PyQt5-sip --user
rm ~/.config/guiscrcpy/*mapper*
guiscrcpy-mapper
guiscrcpy
Hope this would work
You can check
guiscrcpy-mapper --help
to see the possible options.
Every time you remove the json file, the mapper is reseted to the original values
from guiscrcpy.
by curiosity witch lib java you will use to accelerate the send of the event action to the phone ?
from guiscrcpy.
Closed by 3.5
from guiscrcpy.
Related Issues (20)
- [BUG] guiscrcpy.exe won't start HOT 3
- BUG guiscrcpy report HOT 4
- [BUG] scrcpy gave me a error when starting
- Doesn't download the music
- [BUG] Won't open and mount a disk volume for me. Really annoying!
- BUG both tablets not recognized
- [BUG] Does not support m1 mac. HOT 4
- [BUG] CANT CROP (Steam deck)
- [BUG]qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. HOT 1
- could not install guiscrpy well wtih the scrpy. how do i delete in order to install a new one?[BUG]
- [BUG] Software freezes on loading logo
- [BUG] ModuleNotFoundError coloredlogs, but python-coloredlogs is installed HOT 1
- [BUG] "START SCRCPY" crashes the app HOT 1
- Guiscrcpy screen not displaying HOT 2
- [forwarded audio not getting recorded]
- [BUG]
- [BUG] Guiscrcpy wont show android device HOT 2
- [BUG] AppImage missing libcrypt.so.1
- Mirrored screen not loading HOT 4
- [BUG] arguments passed to setSizePolicy are not in the expected format HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from guiscrcpy.