Giter Club home page Giter Club logo

Comments (13)

srevinsaju avatar srevinsaju commented on May 18, 2024 2

from guiscrcpy.

srevinsaju avatar srevinsaju commented on May 18, 2024 1

@karousn For your reference
This is a sample config file for the mapper json

{"key": [], "pos": [], 
"S": [296.4705882352941, 357.16129032258067], 
"K": [652.2352941176471, 417.0322580645161]}

The S key corresponds to the position x=296 and y=357
The K key corresponds to 652, 417
etc

from guiscrcpy.

srevinsaju avatar srevinsaju commented on May 18, 2024

Did you mean, opening the Bluetooth panel with a keyboard shortcut, or switching Bluetooth on/off

from guiscrcpy.

jasonwkl avatar jasonwkl commented on May 18, 2024

Maybe this is not for the capability of this software but I was thinking more of letting a Bluetooth game controller map to a region on the screen, so that people can use a game controller to control buttons that is on the screen.

from guiscrcpy.

jasonwkl avatar jasonwkl commented on May 18, 2024

That exactly what I am thinking of. Sounds awesome. Can't wait to try it out.

from guiscrcpy.

srevinsaju avatar srevinsaju commented on May 18, 2024

@jasonwkl , its finally a feature. Get guiscrcpy v2.0 with Keyboard Mapping and let me know how it is https://github.com/srevinsaju/guiscrcpy/releases/tag/2.0

from guiscrcpy.

srevinsaju avatar srevinsaju commented on May 18, 2024

Genymobile/scrcpy#712

from guiscrcpy.

karousn avatar karousn commented on May 18, 2024

Firstly thank you for this project,
Can you give us an example how we can define a key mapping to do some event on scrcpy screen ?
in video or gif animation it will be perfect.

from guiscrcpy.

srevinsaju avatar srevinsaju commented on May 18, 2024

@karousn I may not be able to give full video of it afaik, maybe these steps might be helpful

  • Connect your device
  • Type
guiscrcpy-mapper

in your terminal

  • If everything goes successful, you should see your phone screenshot
    image
  • Follow the on screen instructions
  • Close the window, now open guiscrcpy
  • Click this button to enable the mapped buttons
    image

from guiscrcpy.

karousn avatar karousn commented on May 18, 2024

thank for the fast response.
I am not familiar with python script so i need some help in that.
To execute : guiscrcpy or guiscrcpy-mapper i have a problem with PyQt5.sip No module named 'PyQt5.sip'
for guiscrcpy i can executed with python3 -m guiscrcpy but i can't do the same with guiscrcpy-mapper
in stackoverflow i see this : https://stackoverflow.com/a/59712128

from guiscrcpy.

srevinsaju avatar srevinsaju commented on May 18, 2024

@karousn we have a discord channel https://discord.gg/TyhR3B for guiscrcpy related issues. I can help you out in details, there
Maybe your default Python is 2.7
What does

python -V

give?

from guiscrcpy.

karousn avatar karousn commented on May 18, 2024

python3 -V : Python 3.8.2
python -V : Command 'python' not found
Btw, using python3 scripts/guiscrcpy-mapper i am able to see the key mapper and it generate a json file called guiscrcpy.mapper.json on .config/guiscrcpy so for me i can start prepare a file to my need but i need an example.
using the guiscrcpy mapper i have this message error:
Lets Check Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/guiscrcpy-3.3-py3.8.egg/guiscrcpy/lib/mapper.py", line 185, in keyreg fixy = rely * int(dimValues[1]) ValueError: invalid literal for int() with base 10: '2960\nOverride size' PyQt5.QtCore.QPoint(365, 355) LAST
That why i need and example file to generate manually if we are in need.
Thank 👍

from guiscrcpy.

srevinsaju avatar srevinsaju commented on May 18, 2024

Thanks, Seems like your device is using a Override resolution. This doesn't work, I will need to add that feature too. Thanks for finding this out.

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.