XtMapper icon indicating copy to clipboard operation
XtMapper copied to clipboard

i can't enter aiming mod help please

Open 20univers08 opened this issue 1 year ago • 20 comments

i tried every key on the keyboard but nothing work + is the aiming mod important for the mapped keys to work ? i make some keys and tried them on free fire and free fire max but the buttons simply dosen't work i think i need to enable aiming mod to make theme work + we need another tutorial video on youtube or something else because the app a little complicated and no one talking about it things may help you :

  • i have waydroid / android 13 / rooted with waydroid_script
  • i have ubuntu 24.04
  • PC HP laptop / i3-10th generation / 4Gb ram / waydroid runs smoothly
  • i just installed xtmapper apk from github please can you help me with that

20univers08 avatar Sep 01 '25 20:09 20univers08

Make sure you are using cage-xtmapper which is needed for XtMapper to work with waydroid: https://xtr126.github.io/XtMapper-docs/waydroid/

is the aiming mod important for the mapped keys to work

Aiming mode is only needed to "lock" the mouse cursor to move the camera (and shoot meanwhile) in games. For key presses, it's not needed.

we need another tutorial video on youtube or something else because the app a little complicated and no one talking about it

I agress, that's why I'm trying to document more stuff here: https://xtr126.github.io/XtMapper-docs And in case you didn't come across this I also made a video for waydroid: https://youtu.be/NNFtEQLW7IU

Xtr126 avatar Sep 03 '25 12:09 Xtr126

the terminal output : univers@Univers-Style:~$ tar xvf cage-xtmapper*.tar cd usr/local/bin sudo install -Dm755 ./cage_xtmapper /usr/local/bin/ sudo install -Dm755 ./cage_xtmapper.sh /usr/local/bin/ usr/ usr/local/ usr/local/bin/ usr/local/bin/cage_xtmapper usr/local/bin/cage_xtmapper.sh [sudo] password for univers: univers@Univers-Style:~/usr/local/bin$ cage_xtmapper.sh --window-width 1280 --window-height 720 --window-no-title-bar ERROR: WayDroid container service is already running [16:58:25] WayDroid container is STOPPED [16:58:26] Starting waydroid session [16:58:26] WayDroid container is STOPPED [16:58:27] WayDroid container is STOPPED lxc-attach: waydroid: ../src/lxc/attach.c: lxc_attach_run_command: 1841 No such file or directory - Failed to exec "getprop" Waiting for overlay... setenforce: SELinux is disabled --------- beginning of main 09-03 16:00:23.149 1233 1233 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<< 09-03 16:00:23.318 1233 1233 I AndroidRuntime: Using default boot image 09-03 16:00:23.318 1233 1233 I AndroidRuntime: Leaving lock profiling enabled 09-03 16:00:23.319 1233 1233 W app_process: ART APEX data files are untrusted. 09-03 16:00:23.320 1233 1233 I app_process: Core platform API reporting enabled, enforcing=false 09-03 16:00:41.192 1233 1233 D app_process: Time zone APEX ICU file found: /apex/com.android.tzdata/etc/icu/icu_tzdata.dat 09-03 16:00:41.192 1233 1233 D app_process: I18n APEX ICU file found: /apex/com.android.i18n/etc/icu/icudt70l.dat 09-03 16:00:41.396 1233 1233 W app_process: Unexpected CPU variant for x86: x86_64. 09-03 16:00:41.396 1233 1233 W app_process: Known variants: atom, sandybridge, silvermont, kabylake, default 09-03 16:00:43.202 1233 1233 D AndroidRuntime: Calling main entry xtr.keymapper.server.RemoteServiceShell using wayland client Starting: Intent { act=android.intent.action.MAIN cmp=xtr.keymapper/.activity.MainActivity (has extras) } [17:01:39] Android with user 0 is ready 09-03 16:01:41.525 1233 1233 D ViewRootImpl: Faking touch inputs for xtr.keymapper 09-03 16:01:41.526 1233 2215 W Parcel : Expecting binder but got null! I: Searching for touchpad devices... I: No touchpad devices found 09-03 16:01:46.271 1233 2215 D libEGL : loaded /vendor/lib64/egl/libEGL_mesa.so 09-03 16:01:46.272 1233 2215 D libEGL : loaded /vendor/lib64/egl/libGLESv1_CM_mesa.so 09-03 16:01:46.435 1233 2215 D libEGL : loaded /vendor/lib64/egl/libGLESv2_mesa.so 09-03 16:01:46.447 1233 2215 I MESA : Using gralloc0 CrOS API 09-03 16:01:46.447 1233 2215 W EGL-MAIN: failed to get driver name for fd -1 09-03 16:01:46.447 1233 2215 W EGL-MAIN: MESA-LOADER: failed to retrieve device information 09-03 16:01:46.447 1233 2215 W EGL-MAIN: failed to get driver name for fd -1 09-03 16:01:47.199 1233 2215 E OpenGLRenderer: Device claims wide gamut support, cannot find matching config, error = EGL_SUCCESS 09-03 16:01:47.199 1233 2215 W OpenGLRenderer: Failed to initialize 101010-2 format, error = EGL_SUCCESS 09-03 16:01:47.203 1233 2215 E OpenGLRenderer: Unable to match the desired swap behavior. 09-03 16:01:47.256 1233 1985 I OpenGLRenderer: Davey! duration=5699ms; Flags=1, FrameTimelineVsyncId=24385, IntendedVsync=497589891428, Vsync=497589891428, InputEventId=0, HandleInputStart=497590275939, AnimationStart=497590276481, PerformTraversalsStart=497590276644, DrawStart=503264415773, FrameDeadline=497610558094, FrameInterval=497590274048, FrameStartTime=16589790, SyncQueued=503264776942, SyncStart=503270928027, IssueDrawCommandsStart=503270973007, SwapBuffers=503294207622, FrameCompleted=503295860719, DequeueBufferDuration=0, QueueBufferDuration=137124, GpuCompleted=503295860719, SwapBuffersCompleted=503295189142, DisplayPresentTime=0, CommandSubmissionCompleted=503294207622, 09-03 16:01:56.650 1233 1233 W Choreographer: Frame time is 0.154608 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase. 09-03 16:02:00.213 1233 1233 W Choreographer: Frame time is 0.346851 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase. 09-03 16:02:01.279 1233 1233 W Choreographer: Frame time is 0.273047 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase. 09-03 16:02:16.015 1233 1233 W Choreographer: Frame time is 0.048772 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase. 09-03 16:02:16.614 1233 1233 W Choreographer: Frame time is 0.384068 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase. 09-03 16:02:16.714 1233 1233 W Choreographer: Frame time is 0.283087 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase. 09-03 16:02:17.047 1233 1233 W Choreographer: Frame time is 0.030588 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase. 09-03 16:02:18.396 1233 1233 W Choreographer: Frame time is 0.00394 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase. 09-03 16:02:26.506 1233 1233 D ViewRootImpl: Faking touch inputs for xtr.keymapper 09-03 16:02:26.506 1233 2215 W Parcel : Expecting binder but got null! I: Searching for touchpad devices... I: No touchpad devices found 09-03 16:02:28.011 1233 1233 I Choreographer: Skipped 89 frames! The application may be doing too much work on its main thread. 09-03 16:02:29.946 1233 2215 E OpenGLRenderer: Unable to match the desired swap behavior. 09-03 16:02:29.961 1233 1985 I OpenGLRenderer: Davey! duration=3428ms; Flags=1, FrameTimelineVsyncId=34402, IntendedVsync=542582799169, Vsync=544066132443, InputEventId=0, HandleInputStart=544072722445, AnimationStart=544072722735, PerformTraversalsStart=544072722896, DrawStart=546009359619, FrameDeadline=542603465835, FrameInterval=544072691684, FrameStartTime=16666666, SyncQueued=546009444375, SyncStart=546013972390, IssueDrawCommandsStart=546014212724, SwapBuffers=546014395287, FrameCompleted=546015569231, DequeueBufferDuration=0, QueueBufferDuration=277749, GpuCompleted=546015569231, SwapBuffersCompleted=546015226972, DisplayPresentTime=0, CommandSubmissionCompleted=546014395287, Starting: Intent { act=android.intent.action.MAIN cmp=com.dts.freefiremax/com.dts.freefireth.FFMainActivity } 09-03 16:02:49.867 1233 1985 I OpenGLRenderer: Davey! duration=3335ms; Flags=0, FrameTimelineVsyncId=37323, IntendedVsync=562586175619, Vsync=562586175619, InputEventId=0, HandleInputStart=562586351374, AnimationStart=562586351928, PerformTraversalsStart=562586352077, DrawStart=562586371775, FrameDeadline=562606842285, FrameInterval=562586350409, FrameStartTime=16666666, SyncQueued=562586375008, SyncStart=562586397448, IssueDrawCommandsStart=562586409050, SwapBuffers=565914415851, FrameCompleted=565921749113, DequeueBufferDuration=3326894047, QueueBufferDuration=95235, GpuCompleted=565921749113, SwapBuffersCompleted=565914905627, DisplayPresentTime=0, CommandSubmissionCompleted=565914415851, 09-03 16:02:53.796 1233 1233 W Choreographer: Frame time is 0.067197 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase. 09-03 16:13:37.086 1233 1233 I Choreographer: Skipped 33 frames! The application may be doing too much work on its main thread. 09-03 16:13:52.896 1233 1233 W Choreographer: Frame time is 7.18E-4 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase. 09-03 16:13:58.757 1233 1233 W Choreographer: Frame time is 0.017225 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase. 09-03 16:13:59.306 1233 1233 W Choreographer: Frame time is 0.026985 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase. 09-03 16:14:00.505 1233 1233 W Choreographer: Frame time is 0.0064499998 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase. 09-03 16:14:00.804 1233 1233 W Choreographer: Frame time is 0.072464 ms in the future! Check that graphics HAL is generating vsync timestamps using the correct timebase.

here i closed waydroid because of some problems :

  • first i followed the instructions like the video and other videos also
  • when it start waydroid i notice a cursor on top of waydroid cursor
  • xtmapper opened automatically and then i started free fire from xtmapper
  • and when it opens i can do nothing literally nothing the mouse clicks doesn't work i still can move the cursor but nothing happen when i click
  • also i can't interact with status bar or navigation buttons

i tried other keymappers and here my experience to help you

  • k2er not working same problem
  • octopus not even start
  • that one work a little good but its too complicated its called "keymapper" : https://play.google.com/store/apps/details?id=io.github.sds100.keymapper&hl=fr&pli=1 it works because "keymapper" can performe a touche like a real finger touching the screen and it can capture input key event from my laptop keyboard you can try it and make somthing similar and the performance works better Your application is the best I hope you continue developing it thank you for your hard work

20univers08 avatar Sep 03 '25 16:09 20univers08

i'm here to help :)

20univers08 avatar Sep 03 '25 16:09 20univers08

here i closed waydroid because of some problems :

I noticed something, if you close waydroid with Alt+F4 and then run cage_xtmapper.sh, it freezes. Pressing ctrl+c while in the terminal window doesn't have this problem.

Xtr126 avatar Sep 04 '25 12:09 Xtr126

yeah i closed waydroid from the terminal Ctrl+C do you have any plans in mind to fix that

20univers08 avatar Sep 04 '25 12:09 20univers08

I'll try to find a solution.

and when it opens i can do nothing literally nothing the mouse clicks doesn't work i still can move the cursor but nothing happen when i click

Can confirm this happens for me if I have "Show controls" enabled in Settings > Advanced

Xtr126 avatar Sep 04 '25 12:09 Xtr126

yeah i have show controls enabled :)

20univers08 avatar Sep 04 '25 12:09 20univers08

no way that's the problem ?

20univers08 avatar Sep 04 '25 12:09 20univers08

no way that the problem ?

Turns out it is the problem. By the way you seem to have touchpad input enabled, it has no effect in Waydroid.

Xtr126 avatar Sep 04 '25 12:09 Xtr126

I need to try that but first i'll uninstall waydroid because of GAPPS Really annoying

20univers08 avatar Sep 04 '25 12:09 20univers08

I have another problem I can't map some keys like Ctrl and space

20univers08 avatar Sep 04 '25 12:09 20univers08

You can't when cage-xtmapper is not running, but when it is running Ctrl and space should be able to be mapped.

Xtr126 avatar Sep 04 '25 13:09 Xtr126

Yeah it's working and everything fixed thanks but it's a little bit lagging and that cursor on top never disappear. Thank you bro 😁

20univers08 avatar Sep 04 '25 15:09 20univers08

I believe that you can make something better

20univers08 avatar Sep 04 '25 15:09 20univers08

Yeah it's working and everything fixed thanks but it's a little bit lagging and that cursor on top never disappear.

I don't have that issue on KDE Plasma atleast You could try playing around with the cursor on subsurface prop https://docs.waydro.id/usage/waydroid-prop-options

https://github.com/user-attachments/assets/f73c079f-7018-4fcc-8ba5-704355ed43ff

Xtr126 avatar Sep 04 '25 17:09 Xtr126

Do you have another way to make xtmapper work without lunching it everytime from the terminal it just consume my resources I have root so is there's any way to make it work it's not impossible anyway That other app work just with accessibility no root needed at all

20univers08 avatar Sep 04 '25 17:09 20univers08

Do you have another way to make xtmapper work without lunching it everytime from the terminal it just consume my resources I have root so is there's any way to make it work it's not impossible anyway That other app work just with accessibility no root needed at all

I do have plans to try an alternate approach using a wayland proxy such as sommelier or wayland-proxy-virtwl to get rid of cage and passthrough directly to the host wayland compositor.

But that would take a while to port all changes from cage-xtmapper/wayland-getevent for capturing input events. If you want to avoid using a terminal, you could create a .desktop file like this, as cage-xtmapper.desktop in ~/.local/share/applications/ or ~/Desktop

[Desktop Entry]
Type=Application
Name=Waydroid(XtMapper)
Comment=XtMapper integration for Waydroid
Exec=/usr/local/bin/cage_xtmapper.sh %U
Icon=application-x-executable
Terminal=false
Categories=Utility;Gaming;Emulator;
Keywords=Wayland;Android;Keymapper;Waydroid;

You might also need to edit the cage_xtmapper.sh script and replace sudo invocations with pkexec unless sudo is configured to use a password helper.

Xtr126 avatar Sep 05 '25 09:09 Xtr126

Good idea ! I'm waiting for it Take your time

20univers08 avatar Sep 05 '25 10:09 20univers08

Yeah it's working and everything fixed thanks but it's a little bit lagging and that cursor on top never disappear. Thank you bro 😁

Actually I found the cursor on top issue is only with cage-xtmapper v0.1.5, it's not there with v0.2.0.

Xtr126 avatar Sep 06 '25 03:09 Xtr126

I have Ubuntu 24 so i can't install v0.2.0

20univers08 avatar Sep 06 '25 12:09 20univers08