Is there anyway to map a hardware button (Vol Up) to a specific touch area? - Samsung Galaxy S9+ Questions & Answers

Hello guys,
I'm playing PUBG on S9+ Exynos and have trouble shooting while aiming.
Is there anyway to map the Volume UP button to the touch screen where the shoot icon is so I can shoot with the pointing finger while aiming and moving with 2 thumbs like on consoles?
Non-root method please

you need BxAction (or some other app that can remap hardware buttons. BxAction can remap Vol up/down and Bixby), tasker, and auto input.
- Use bxaction to map the button you want to a Tasker task (let's call it ShootGunTask, for example)
- in Tasker's ShootGunTask, go to the plugin and choose autoInput. Then input the display coordinate if the icon
I use something very similar to what you want in Telegram. When I'm in telegram app, short clicking Bixby button clicks the "send voice note" button. Effectively turning my phone into a walkie-talkie.

monkeyhandler said:
you need BxAction (or some other app that can remap hardware buttons. BxAction can remap Vol up/down and Bixby), tasker, and auto input.
- Use bxaction to map the button you want to a Tasker task (let's call it ShootGunTask, for example)
- in Tasker's ShootGunTask, go to the plugin and choose autoInput. Then input the display coordinate if the icon
I use something very similar to what you want in Telegram. When I'm in telegram app, short clicking Bixby button clicks the "send voice note" button. Effectively turning my phone into a walkie-talkie.
Click to expand...
Click to collapse
hey can you please explain more ?

Related

Button Mapping - my recomendation

Hi.
I found the programm for button mapping called AE Button Plus It works perfect on the Rose.
You can use it f.e. for display off/on switching, toggle wifi, bluetooth and mapping of all buttons for functions you would like.
Its really, my recomendation!
I tried the app but it broke all the default button mapping, power switch and holding the end key down didnt lock the screen any more, the camera button still works. Do you have any tips on using the software? I dont see a manual or documentation for it.
Thanks.

[APP][24JUN2010]VolDpad: Use the volume buttons as a d-pad; New: Source code avail.

I have changed my Diamond bay a Touch HD and what I miss more is the d-pad.
I really need it because I read a lot on my device and it is necessary to turn pages, etc. So I searched for a solution.
I've using remaping keys programs for some days, but they are big and have some limitations so I've done my own program with a very simple behaviour:
-Volume UP is remaped to d-pad UP. Can be hold for autorepeat.
-Volume DOWN is remaped to d-pad DOWN. Can be hold for autorepeat.
-Double click Volume UP is remaped to d-pad LEFT. Does not support autorepeat.
-Double click Volume DOWN is remaped to d-pad RIGHT. Does not support autorepeat.
-Double click with hold in Volume UP is remaped to d-Pad RETURN with Hold.Does not support autorepeat.
-Double click with hold in Volume DOWN is remaped to d-Pad RETURN.Does not support autorepeat.
-If a call is being established or is active the volume keys will behave normally.
-Running the file a second time will close the resident with a small tone.
The program is small (7Kb) and remain resident without making use of CPU, it is simply a keyboard hook.
To install it copy the file werever you want and execute it. If you want it to start automatically after a Soft Reset make a link (DO NOT PUT THE FILE DIRECTLY) under \Windows\Startup or your locale equivalent.
REVISIONS
June 24, 2009: I've liberated the source code in order to allow other developers to improve the concept!!
August 28,2009:
-Soved the Back Arrow issue on HTC devices.
-Added support for unloading the program
-First try to add suport for Return-Hold (Context menus)
IMPORTANT
Some users are having issues with VolDpad on HD2 and Diamond 2. This one solves the issue:
http://forum.xda-developers.com/showpost.php?p=8062091&postcount=4
Hope it will be useful
If you like it and want to give me a buck please use this button:
Thanks to the following donators:
Johannes B., Federico, Mike P., Marie-Françoise H.,
DOWNLOADS
Download VolDpad from my site.
really nice app
but does it work in touch pro 2 ?
I've tested it only on a Diamond and on a Touch HD.
But the technology should be the same for the TP2
well this is brilliant! and it works great on my blackstone.
few suggestions:
- it would be a good idea to have command-line support so that you can turn it on and off easily by creating shortcuts or assigning hardware buttons to enable or disable it, or having a status check so that if it's on, next time you run it will turn it off and vice versa.
-it would be great to have both the "ok" button support and the "hold ok" button support so that you can load "right click" menus.. (you can have the upper vol button function as "ok" and lower vol button function as "hold ok")
wonderful work
it works perfectly on my HD!
Virtual button interrupt on HD?
hi all,
installed this on my HD and it works well, but i notice that when i try to use the virtual button to go <Back> (looks like a left arrow <-- ), now it goes up instead.
anyone else have this issue?
This is a fantastic app, will be useful specially for those who play games on their phone. One query; is there a way to remap the vol key buttons? For example can volume up key be mapped to left key, and volume down key mapped to right key. I say this because in Diamond and Touch Pro the Up and Down key on D-Pad functions normally, its only the left key and the right key that has a problem.
I just check - program works good on samsung i780. Is it possible to disable left/right/return function, but remain only up/down? Could you please add (in future version) any configuration file?
Best regards
Tomasz
lifeisaparody said:
hi all,
installed this on my HD and it works well, but i notice that when i try to use the virtual button to go <Back> (looks like a left arrow <-- ), now it goes up instead.
anyone else have this issue?
Click to expand...
Click to collapse
Same here on the Diamond 2, otherwise, fantastic stuff! If we can either get the Back Arrow button to act like the OK, or return it to its former glory, we are good to go!
Brillant, and I agree with the ML idea
fantastic. been looking for something like this for my touch hd
Awesome app! It works great with mobipocket. You can easily start/kill it with mortscripts (put links in the start menu, and you can do it with voice command). Edit the path as necessary.
kill("\Program Files\VolD-Pad\VolDpad.exe")
run("\Program Files\VolD-Pad\VolDpad.exe")
well done job
Nice work thx
vol buttons as a d-pad
Hi....anyone got it working for worms world party?? Kinda miss that game after changing from a kaiser to a blackstone....
thanks in advance.
Great App! Thanks!
Great stuff. I would add my vote to remove the left/right functionality and replace with 'OK' and 'context menu' support. I miss my Kaiser scroll wheel
It is difficult to do smething that will be perfect for all
I'll try to add support for exiting the program (easy) and for context menus (more difficult).
I also revise the issues with the back key.
EDIT: Done
One thing, What context menu can be reached with holding return? I wish to know for testing it
Thanks
Usefull app, I will get use to it.
Does not work for the TG01! After soft-reset it hijacks the bluetooth, switching it on and removing the BT link from the comm manager. It will not allow delete from any folder where it is copied! even the shortcut will not delete. (Had to manually disable the BT, then it auto deletes the shortcut, andyou can delete from a secondary folder. After soft-reset it will again delete from Primary folder, releasing control of the BT!)

[Q] Remap camera button

I'd like to remap the camera button to launch the voice recorder when suspended, but available as shutter button when in the camera app. Can this button be context sensitive like this?
I found a key mapping in the /system directory, and saw a keycode with the word CAMERA next to it. Is it just a matter of replacing CAMERA with the appropriate voice recorder binary?
Thanks!
I don't believe there is any context sensitivity - however, you can map the camera half-press to the shutter, and a full-press to a voice recorder?
I had to remap my half-press camera button to the "BACK" action when my capacitive "back" button broke on my streak. You'll have to get root, and afterwards you can modify /system/usr/keylayouts/{qwerty,surf}.kl I believe.
Key 52 is the halfpress I think.. 52, or 59. Dig around the .kl files and search for "FOCUS" and "CAMERA" to see which key IDs map that button.
btw, i grew up near/in cerritos from 1986-98. I miss that area very much, esp. during those times. /me waves
kertong said:
I don't believe there is any context sensitivity - however, you can map the camera half-press to the shutter, and a full-press to a voice recorder?
I had to remap my half-press camera button to the "BACK" action when my capacitive "back" button broke on my streak. You'll have to get root, and afterwards you can modify /system/usr/keylayouts/{qwerty,surf}.kl I believe.
Key 52 is the halfpress I think.. 52, or 59. Dig around the .kl files and search for "FOCUS" and "CAMERA" to see which key IDs map that button.
btw, i grew up near/in cerritos from 1986-98. I miss that area very much, esp. during those times. /me waves
Click to expand...
Click to collapse
Thanks! Am I right that I would replace that action with the binary name of the voice recorder? Or is it the apk name?
Wife said we "had"to move to Cerritos, so we did.
I have done this same thing.
It is very easy to do with the Tasker application.
I have set mine so that when im in the car (with my own car mode set on) that the camera button brings up a choice of the dialer, call log or contacts. yet it still functions perfectly when in the camera app.
the_didge said:
I have done this same thing.
It is very easy to do with the Tasker application.
I have set mine so that when im in the car (with my own car mode set on) that the camera button brings up a choice of the dialer, call log or contacts. yet it still functions perfectly when in the camera app.
Click to expand...
Click to collapse
Please describe step-by-step what you did! My ROM is 2.1 (o2), 8105 build.
I tried tasker but I dont see how to remap the Camera (FOCUS) button.
I changed an event (hardware - CAMERA Button) and added an action (load App) then applied.
The notification says, no profie activated? Why?
kertong said:
I don't believe there is any context sensitivity - however, you can map the camera half-press to the shutter, and a full-press to a voice recorder?
I had to remap my half-press camera button to the "BACK" action when my capacitive "back" button broke on my streak. You'll have to get root, and afterwards you can modify /system/usr/keylayouts/{qwerty,surf}.kl I believe.
Key 52 is the halfpress I think.. 52, or 59. Dig around the .kl files and search for "FOCUS" and "CAMERA" to see which key IDs map that button.
btw, i grew up near/in cerritos from 1986-98. I miss that area very much, esp. during those times. /me waves
Click to expand...
Click to collapse
Hey Kertong, needing to do same thing. Replaced my screen and keypad now only performs menu. I am in shell trying to find the right action. Can you describe what you edited the .kl to?
Option 1
2 apps combined together can remap camera
button remapper - remap camera to search fn
launcher key to set search to any app u want
Option 2
Use tasker
Tried Tasker, great program just couldn't get it to work right, but will be a great application when I get it all setup.
My resolution.
Instead of using applications...
I did 'adb shell'
went to /system/usr/keylayout
did 'vi surf_keypad.kl'
And edited key 212 which is Camera, with Back.
Although now the softpad doesn't function as Menu only. Atleast I can go back now.!
the_didge said:
I have done this same thing.
It is very easy to do with the Tasker application.
I have set mine so that when im in the car (with my own car mode set on) that the camera button brings up a choice of the dialer, call log or contacts. yet it still functions perfectly when in the camera app.
Click to expand...
Click to collapse
wyx said:
Please describe step-by-step what you did! My ROM is 2.1 (o2), 8105 build.
Click to expand...
Click to collapse
Seconded. Share!
http://forum.pocketables.net/showthread.php?t=9680

Help! Silent mode accidentally activated

Hi,
My phone frequently goes into silent mode due to accidental long press of the shortcut button (left side physical key) which is very annoying. Furthermore, I have lost many important calls.
I already disabled the shortcut button but the long press function is still putting my phone into silent mode.
Is it possible to disable or remove long press function of the shortcut button?
Thanks in advance.
I have the same problem. Must be a function
dj_superuser said:
Hi,
My phone frequently goes into silent mode due to accidental long press of the shortcut button (left side physical key) which is very annoying. Furthermore, I have lost many important calls.
I already disabled the shortcut button but the long press function is still putting my phone into silent mode.
Is it possible to disable or remove long press function of the shortcut button?
Thanks in advance.
Click to expand...
Click to collapse
same
I got a simple solution:
Just install an app volume lock (you can find in google play store).
When you lock a volume, pressing a key won't change the volume of sound.
grzegorz_b2net said:
I got a simple solution:
Just install an app volume lock (you can find in google play store).
When you lock a volume, pressing a key won't change the volume of sound.
Click to expand...
Click to collapse
This method not working, anybody know how to disable left button? xposed additions not working too for me :/

[MOD][ZIP]Joycons but with Home button and capture button programable

What's up people, I bring you a zip for some, the best thing is that I usually use Xbox Game Pass and PS Play remote and there is no Xbox Guide function or simply PS button, what I did is remap Home button and Capture button in case you want to use it like me.
To add the Home function as before I advise you Button Mapper Add the link, this way you have Button mode (Normal button, Double tap> example Home button> Long press > Turn off screen) Also with the capture Capture button (Normal button> Double tap Screenshot> Long Press> Play / pause music (?))
https://play.google.com/store/apps/details?id=flar2.homebutton&hl=es&gl=US
hi... thanks for your explanation, but can you go into a little more detail please?
Also, can you create the same zip file but with the A/B, X/Y buttons reversed, so that they mimic the xbox layout?
Thanks
Chaleman said:
hi... thanks for your explanation, but can you go into a little more detail please?
Also, can you create the same zip file but with the A/B, X/Y buttons reversed, so that they mimic the xbox layout?
Thanks
Click to expand...
Click to collapse
This is already a thing - you can find it here. https://download.switchroot.org/android-10/extras/joycon-xbox.zip
Chiveta said:
What's up people, I bring you a zip for some, the best thing is that I usually use Xbox Game Pass and PS Play remote and there is no Xbox Guide function or simply PS button, what I did is remap Home button and Capture button in case you want to use it like me.
To add the Home function as before I advise you Button Mapper Add the link, this way you have Button mode (Normal button, Double tap> example Home button> Long press > Turn off screen) Also with the capture Capture button (Normal button> Double tap Screenshot> Long Press> Play / pause music (?))
https://play.google.com/store/apps/details?id=flar2.homebutton&hl=es&gl=US
Click to expand...
Click to collapse
THIS!!! I use Steamlink and I run into this issue everyday!
Chiveta said:
What's up people, I bring you a zip for some, the best thing is that I usually use Xbox Game Pass and PS Play remote and there is no Xbox Guide function or simply PS button, what I did is remap Home button and Capture button in case you want to use it like me.
To add the Home function as before I advise you Button Mapper Add the link, this way you have Button mode (Normal button, Double tap> example Home button> Long press > Turn off screen) Also with the capture Capture button (Normal button> Double tap Screenshot> Long Press> Play / pause music (?))
https://play.google.com/store/apps/details?id=flar2.homebutton&hl=es&gl=US
Click to expand...
Click to collapse
hello, in gamepass with hori split pad also the dpad is buggy, could you help us to remap them?
gp.triple said:
hello, in gamepass with hori split pad also the dpad is buggy, could you help us to remap them?
Click to expand...
Click to collapse
I don't have the hori controller, but I guess it wouldn't be the same. even so. if you are affected with the d-pad it is probably a problem of S.O. or controller keymap.
Hi @Chiveta,
I installed the March 2022 OTA update and now the capture button of my Hori Split Pad Pro doesn't work properly. I can't program it anymore. All the other buttons work without any problems. I haven't tested it yet with other joy cons because I'm on holiday and I don't have them with me.
Can you please have a look and maybe update your script?
Thank you very much!
Update:
I edited the mapping files (changed the capture button to Z, C and 4) but it doesn't work.
I use a gamepad test app and it seems that the capture button is recognized longer than the other buttons, like it's kind of stuck.
Update 2:
I saw in the changelog that there's a new function to turn off RSMouse with the screenshot button. I think that's why I can't remap the button anymore.
The original zip file from Chiveta does not work anymore, but we can modify the Xbox Joycon Layout Zip file from "[ROM][UNOFFICIAL] switchroot Android 10". Just modify
\vendor\usr\keylayout\Vendor_057e_Product_2008.kl
and
\vendor\usr\keylayout\Vendor_057e_Product_2009_Version_8001.kl
to whatever key you want, and repack the zip file, and flash it in TWRP.
You can find all keys that Android supports from the official Android website:
https://developer.android.com/reference/android/view/KeyEvent
For example, I figured out "KEYCODE_BUTTON_MODE" will trigger Xbox Guide Button Long Press (pop up the screen to turn OFF the Xbox). So if you would like to map the screenshot button for this, just changed this line "key 309 MEDIA_PAUSE" to "key 309 BUTTON_MODE"
Remember, you do not need the "KEYCODE_" portion shown in the official Android website.
Or you can just use my zip file.
I have not figured out which button will trigger Xbox Guide Button Short Press (pop up user screen). If anyone figures it out, please let me know. Thanks.

Categories

Resources