Giter VIP home page Giter VIP logo

Comments (10)

srevinsaju avatar srevinsaju commented on May 21, 2024 1

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.

karousn avatar karousn commented on May 21, 2024

any news about this ?

from guiscrcpy.

srevinsaju avatar srevinsaju commented on May 21, 2024

@karousn Maybe I will finish that by this weekend. I apologize for the delay

from guiscrcpy.

srevinsaju avatar srevinsaju commented on May 21, 2024

@karousn I fixed the mapper, can you please test it?

from guiscrcpy.

karousn avatar karousn commented on May 21, 2024

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.

srevinsaju avatar srevinsaju commented on May 21, 2024

@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.

karousn avatar karousn commented on May 21, 2024

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.

srevinsaju avatar srevinsaju commented on May 21, 2024

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.

karousn avatar karousn commented on May 21, 2024

by curiosity witch lib java you will use to accelerate the send of the event action to the phone ?

from guiscrcpy.

srevinsaju avatar srevinsaju commented on May 21, 2024

Closed by 3.5

from guiscrcpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.