Comments (13)
from guiscrcpy.
@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.
Did you mean, opening the Bluetooth panel with a keyboard shortcut, or switching Bluetooth on/off
from guiscrcpy.
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.
That exactly what I am thinking of. Sounds awesome. Can't wait to try it out.
from guiscrcpy.
@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.
from guiscrcpy.
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.
@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
- Follow the on screen instructions
- Close the window, now open guiscrcpy
- Click this button to enable the mapped buttons
from guiscrcpy.
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.
@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.
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.
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)
- [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.