xtr126 / xtmapper Goto Github PK
View Code? Open in Web Editor NEWAdvanced keyboard and mouse input mapping tool
Home Page: https://xtr126.github.io/XtMapper-docs
License: GNU General Public License v3.0
Advanced keyboard and mouse input mapping tool
Home Page: https://xtr126.github.io/XtMapper-docs
License: GNU General Public License v3.0
Overally, the app and everything is perfectly wroking but some issues are exist;
Additionally moving the cursor to screen edges or corner triggers host system actions while xtmapper is running.
(Xtmapper wayland window should lock pointer and let us claim the pointer back if possible, otherwise users are responsible for disabling screen edge actions.)
When I use Add Key
and position the new button on surface, XtMapper app processes the coordinates of top left corner instead of the center of new button.
It would be cool if aside with the implemented On Key - Switch Method would be added a method to enable shooting mode While the chosen key is pressed.
Also here should be a combobox for an option to Invert the Trigger (for shooting mode to work all the time While the Key Is Not pressed, and deactivating when It Is (example.: Windows Genshin Impact version Pointer - It appears Only While Alt key is pressed)
Describe the issue
I tried using XtMapper with WSA but it doesn't work. Hope support for WSA can be added
Device (please complete the following information):
A scan (see here for details and background) just revealed the APKs at your releases are signed using a debug key. As that has security implications, may I ask you to please switch to a proper release key, and provide the corresponding APK signed with it? Thanks in advance!
Tried activating it using adb then that error shows up same with root method just stuck on connecting to server.
Waydroid seriously lacks keymapper. I can see /dev/input in waydroid getting keystroked. Can we not read directly and rempap them through evdev to touch events?
Describe the issue
I have XTMapper apk downloaded from the releases page installed on my phone
I execute from adb shell the command adb shell sh /sdcard/Android/data/xtr.keymapper/files/xtMapper.sh
but it says "Waiting for overlay..." and it closes, then i try to press the "start" button on the app but it says:
connecting to server... connection failed Please retry activation
To Reproduce
Steps to reproduce the behavior:
adb shell sh /sdcard/Android/data/xtr.keymapper/files/xtMapper.sh
Expected behavior
I expect that the connection success and be able game using the mouse and keyboard
Device (please complete the following information):
I have installed bliss os 15.8.5 and xtmapper.
tried it, doesn't seem to work.
Hi,
thank you for your awesome project :D
i'm having a problem not able to use space key when mapping my keyboard event
Step To Reproduce:
Expected Result
It Will show "Space" when after pressing space key, just like pressing B, button will show "B" text
Observed Result
Nothing Happen, the button showing "A" button unchanged
Additional Information:
OS: Bliss OS 14.x running on QEMU/KVM
Graphics: Virtio with 3d Acceleration (Shown in Virt-Manager)
For Mouse and keyboard : i'm using USB mouse and USB Keyboard from Virt-Manager Setting
I Hope you could look into this issue
thanks for your effort :D
System navbar is preventing to place hovering buttons at the bottom of screen, keymap editor need to be fullscreen.
XtMapper doesn't work on most of games that I play then I've noticed that WASD and arrow DPADs are mooving very fast so instead of considering them as swipe they are considered to touch by the game or the system (IDK).
I've noticed too for Sight mode that if you swipe fast , the swipe will be rupted and become touch at a certain moment
Hi,
I was trying to run this application in an Android based Laptop and exploring the features.
I was able to map click events to keys, add swipe behavior and was able to add the D-pad keys, but one thing I could not understand how left click and right click mapping is done.
I have added a left click and right click to a button, but when i try to perform a left click any where, click/touch event is not triggering to that location.
It would be much helpful if anyone can guide me to this.
Whenever im WASD'ing, moving mouse just for 1px will stop WASD movement instantly
im using android x86 8.0.1 and i cant install.
1-can you add right click mouse as a keymap to use it in shooting game
2- limit wasd size
3- enable to free choose any key in keyboard to enable or disable aiming for games
no such file at /storage/emulated/0/Android/data/xtr.keymapper/files/xtrMapper.sh
not even in the APK when quick decompress nor on the repo here for manual install...
I Faced 2 Major Issues while using XTMapper
1. After Pressing ~ the camera movement with mouse not working smoothly and skips input
this is the major issue i faced and making game unplayable
2. MultiTouch - i am playing pubg and after pressing scope on button and holding fire button ,then fire button stops and only one bullet get fired .
Ex - You are firing and while firing if you open scope the firing stops automatically
i hope you understand these issue and fix in future updates.
Keyboard controls are working perfectly 🔥
An app seem to suppose to Auto-Activate the service when the Root is given to it, but for some reason it doesn't. The Auto-Activate is Disabled most of the time, but may get Available under unknown circumstances.
(The ones registered are: It Enabled when the app gone Splitscreen after Fullscreen (happened only 1 time of 6 tries), and It also did when the App have crashed and restarted after service broke and I attempted to Stop (happened 2 times of ~12 tries)
Hi, this app is amazing, but I can't seem to run it in Waydroid.
When I try to run xtMapper.sh, nothing happens. And when I try to run the overlay, it times out since it isn't activated.
Here's the logcat output:
03-07 22:45:27.174 5550 5550 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
03-07 22:45:27.175 5550 5550 I AndroidRuntime: Using default boot image
03-07 22:45:27.175 5550 5550 I AndroidRuntime: Leaving lock profiling enabled
03-07 22:45:27.176 5550 5550 E app_process: Could not open boot oat file for extracting boot class path: File /apex/com.android.art/javalib/boot.art:/system/framework/boot-framework.art!/system/etc/x86_64/boot-image.vdex does not exist.
03-07 22:45:27.176 5550 5550 E AndroidRuntime: JNI_CreateJavaVM failed
After android x86 9 xtmapper is installed, the interface opens normally, click active with su and then click overlay prompt to reactivate. When searching /storage/emulated/0/Android/data/xtr.keymapper/files in the file manager, xtmapper.sh is not found, and xtmapper cannot work!
The same is true for reinstalling xtmapper!
I don't know what the problem is, it's the same in several versions.
can you set right click mouse as key to support scope in battle gaming
also can you support change key for aiming
after build and test new debug app
for bliss os 11.3 android 9 / bliss os 14 gapps it's crash after first opening but working good after this
edit keys need some improvement ( test for free fire )
mouse not move like freeze when drag anything like notificaion panel but it do action
aiming mouse works good test for freefire but there's some lag need some improvment
So, I used all exact methods of using wayland-getevent but it didn't work for the latest release APK, but did for the debug one from Actions, but the debug one I at first thought won't work because keys for buttons won't change, but it would if I press the "XtMapper" window over the Waydroid one
What do you guys think?
This experimental project seems good and it's pretty cool they got serious about the issue #9, just want to say
Maybe the next APK going this progress may be labeled at least Pre-release
Any issues so far when "waydroid-getevent" was around, guys?
You want or need me to send you a footage of screen record recording the process?
Xtmapper server crashes upon mouse whell
log.txt
Tested on BlissOS v17.1
First of all thank you for working on this app.
I know that there is support for using mouse as touch input, i haven't tried that yet but i will assume that it can be used for swiping too.
what i am saying is that it would be nice to have a swipe function mappable to a key, like i pre define swipe position and length and map a key to it and when i press that key, it does the swipe. It will be useful in games like subway surfers where predefined swipes can do the trick.
TalkBack is not able to read any options in the app
I am using scrcpy --otg
to pass the mouse and the keyboard to my mobile device, when I enable shooting mode, the keyboard inputs work all fine but as soon as I move my mouse it stops accepting keyboard inputs and I have to re-enable shooting mode again for it to work.
Mind you I am not using BlissROM, but rather using AOSPA Android 13 on a POCO X3 NFC (surya).
If there were any troubleshooting steps or such, or some issue template, I'd fill it out, but I'll wait for a response. Thank you.
I am using blissos 16.9.3. KernelSU work good with all app except xrmapper, xtmapper alway said that it want root access even i enabled it on kernelSU. Also shizuku on waydroid also have this buggy. I can't playgame on xtmapper without xtmapper
I have done some workarounds in #9 in the latest version, but i experienced the same errors OP got (libmouse_read.so error.)
even i installed the APK from #6 but same problem
There hasn't been an update on #9 since 03/26.
waydroid runs Android in a container, it doesn't have direct access to input devices (evdev). You might need to hotplug input devices (kbd,mouse) for the keymapper to function. I couldn't find any way to get exclusive access to mouse input devices from within Android other than reading from kernel evdev devices.
Have you found another way without exclusive access?
Also did you consider "persist.waydroid.uevent" property in waydroid which makes direct access to hotplugged devices.
Are the fixes upstream?
When switching between apps (even into XtMapper itself) it constantly asks if I want to make a new profile
Hitting "Cancel"... it pretends like I hit "OK" and asks me for a profile name. I can close out at this point, which normally would be fine.
But the SECOND I switch to a different app, it just pops back up again
If it matters, I'm running under Waydroid, using this build of the APK, and using Wayland GetEvent tool for keyboard / mouse support
It's checked that on 1.4.1 all the mapped signals are registered Later than they were in 1.4 and the other versions for about 50-100ms which is pretty much noticeable, especially in rhythm games. Dpad element usage starts even later and somehow slower (it's literally might be noticed how the virtual con starts moving from the center💀)
Lenovo IdeaPad S145 81MV : Bliss OS 14.10, Bliss OS 15.8.5 - integrated keyboard, USB keyboard, USB mouse
Hi
thanks for your in to this project :D , this helps me a lot when playing android game from my linux laptop ^_^
i've encountered issue regarding profile switching, the app suddenly crash when switching profile
Step to Reproduce:
Observed Result
Expected Result
Additional Information:
OS : Bliss OS 14.x running in QEMU/KVM (Virt-Manager)
Graphics: Virtio with 3D Acceleration
Keyboard and Mouse Setting: Using USB keyboard + USB Mouse from Virt-Manager Setting
I Hope you don't mind to look on this issue
Thanks for your effort
On the event logs, it was pretty clear that it's able to read WASD key, but it doesn't seem to send any input into the game. Using arrow keys is working fine.
When I run the command in adb these codes appear
C:\Users\User>adb shell sh /sdcard/Android/data/xtr.keymapper/files/xtMapper.sh
java.lang.SecurityException:
at android.os.Parcel.createExceptionOrNull(Parcel.java:2438)
at android.os.Parcel.createException(Parcel.java:2422)
at android.os.Parcel.readException(Parcel.java:2405)
at android.os.Parcel.readException(Parcel.java:2347)
at android.os.IServiceManager$Stub$Proxy.addService(IServiceManager.java:452)
at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:72)
at android.os.ServiceManager.addService(ServiceManager.java:249)
at android.os.ServiceManager.addService(ServiceManager.java:218)
at xtr.keymapper.server.RemoteService.(RemoteService.java:36)
at xtr.keymapper.server.RemoteService.main(RemoteService.java:28)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:378)
and the app does not activate,I've also tried to put the code that the app itself gives and it didn't work either
I thought I would just paste the code and the app would activate
**Device
For me, 100ms seems too much, so i forked your repo and modified a little bit. I found out 25ms suits me most, so please do it. Thanks
help
Describe the issue
After Auto Activation is done, clicking ''Start'' will force you to create a profile for the XtMapper app and won't open up the menu to select an app.
To Reproduce
Expected behavior
Select an app to create a profile
Device
In both 1.4 and 1.4.1 versions, if you click right mouse button when the shooting mode is working - it will only deactivate shooting mode Whatever the settings are (even if you set ~ as a shooting mode controlling key in both app menu and map 's one .) So when in shooting mode - the right button map won't work as intended
1、When setting the key mapping, it often occurs that the button is deleted, and the button cannot be saved after resetting the button. At this time, there is no response to exiting the button APP。
i can only use the process manager to force the end, otherwise nothing will work, and then restart the APP to normal. The same problem will occur again if you perform the previous operation!
2、In many games such as Blade&Soul Revolution, the game screen is completely black when the button is switched to map, and the game screen is normal when the button is stopped.
Only use a tape measure to measure the position. In this way, i can set the button position to play the game.
My game environment runs under android 9 amd rx550 2G vulkan. Tried the same in normal mode.
I don't know why it won't let me install, I'm 32-bit (motorola G6 play)
i am running fyde os i am totally new to this thing and there is no solution on stack overlow like places so please tell me complete guidelines to either root my android container or get shizuku and xtmapper run i mainly wanna try freefire
title is self-explanatory, i cant seem to enter aim mode no matter what i press, be it ~ or rmb and idk whats causing it because everything else works perfectly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.