Git Product home page Git Product logo

xtmapper's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

xtmapper's Issues

[Issue] Waydroid input handling and more

Overally, the app and everything is perfectly wroking but some issues are exist;

  1. Can't use "~" key. (Fixed by dad33d1)
  2. "Mouse aim" shortcut works only if i hold the key neither if it is in "toogle" mode or "hold" mode.
    Regarding these, i can only use right click to switch aim mode.
  3. Can't perform two finger gesture on waydroid. (Fixed by 70d036d)

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

[Feature request] Option for Shooting mode activation while specific key pressed

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)

I hope XtMapper will add support for WSA

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):

  • OS: WSA
  • Android version 13

Certificate issue

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!

Support for waydroid (not dupplicate)

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?

Cant activate XtMapper in Poco F3

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:

  1. Execute adb shell sh /sdcard/Android/data/xtr.keymapper/files/xtMapper.sh
  2. Click on 'Start' button
  3. Select a name for the profile
  4. See error

Expected behavior
I expect that the connection success and be able game using the mouse and keyboard

Screenshots
image
image
image

Device (please complete the following information):

  • OS: Project Elixir ROM version 3.13
  • Android version 13

Unable To Use Non Number and Alphabetic keyboard button For Keymap

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:

  1. Open XtMapper
  2. Edit Overlay
  3. Click Pencil Button on bottom right corner
  4. Add Key, then a button will shown to the screen
  5. Click the button, then press any key (in this case "Space button")

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

[ Issue ] Very fast and robotic swipes on DPAD

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

How does Left Click and Right Click remap work?

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.

RightClickMouse

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

missing /storage/*/xtrMapper.sh

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

Mouse Input Lag Issue

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 🔥

[Issue] Auto-activation option availability is inconsistent even when the Root is given

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)

Waydroid support

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

android x86 9 xtmapper problem

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.

support more keys ( edited )

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

Issue about wayland-getevent

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?

[feature] swipe function

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.

Moving mouse cancels shooting mode

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.

Xtmapper always want root even it had.

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

Any fixes for waydroid?

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?

Constantly asking about creating new profiles

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

[Issue] Input delay in 1.4.1

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

XtMapper Crash when Switching Profile

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:

  1. Open XtMapper
  2. Use Default Profile
  3. Create Overlay
  4. Use The overlay to play games
  5. back to XtMapper
  6. Switch Profile to random apps
  7. The app crash

Observed Result

  • The app crash

Expected Result

  • The app doesn't crash

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

DPAD doesn't register WASD

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.

I can't activate my xt mapper on my cell phone

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

Screenshots
image

**Device

  • samsung galaxy s10 plus exynos
  • one ui 4.1
  • Android version 12

Select app menu doesn't exist in BlissOS Android Go v15.9

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

  1. Click Auto Activate
  2. Click Start

Expected behavior
Select an app to create a profile

Device

  • OS: Bliss Go v15.9
  • Android version: 12

There are two key mapping problems in the game to give feedback!

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.
Screenshot_20230329-225356

unable to start on fyde os

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

[blissos] aiming mode doesnt activate

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.

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.