[Q] usb controller otg key rebinding - Android Q&A, Help & Troubleshooting

hello
I have a strange no name usb controller from china
some command don't work. (not the same keycode)
is there an app to rebind the key ? for example keypress 391 = button 2
thx

Related

how to press a control, alt or esc button on a touch screen pda ( hima)?

i was actually running an application on hima.
this application has assigned a shortcut command on certain key like
ctrl , alt or esc .
for example to close the program press ctr A. and there is no display x on the top right of the program which be used to close the program .
As hima is a touch screen pda, are there any application which can help ?
use aes button application

map button combinations?

I'm wondering if it is possible to patch the kernel to let we use buttons combinations, for example:
- menu + vol_up = media player next song

iHome Keyboard for Apple [IH-IP2101] / Works for Android Too!

OK, I am planning to buy the keyboard at Walmart. According to one user, "I paired it with my Samsung Galaxy S2 (Sprint) and it works just fine," which is the answer to the Android support. At least version 3.x+ should work. I'm on DextersJB ROM v1.8. Um... I also saw a picture of the Black version that has windows key and PC keys. But since I'm planning to buy the Apple version, I'm really concerned about the apple keys. Also, since my previous keyboard runs on batteries, It does have a Lithium Ion battery, and charges through microUSB like other phones, so I could use another USB Plug to charge it, so no need for buying cheap batteries!
Here is the difference:
It has Control Key, Alt/Option Key, and Command Key. Those do not work.
Has no num lock key
And, instead of insert, delete, print screen, it's delete, print screen, and then insert.
But hey, everybody knows that Enter is Return key. Everything else is the same layout. So... here are the questions.
- Does it work for CM10 Android Jellybean 4.1.1 Custom ROMs?
- How can I pair it? Can I pair it normally?
Apple Keys? Try This!
First, enable Bluetooth, and pair your keyboard. Then, Download and Install the External Keyboard Helper or External Keyboard Helper Pro.
Go to Advanced Settings -> Customize Keyboard Mappings.
Click either Custom 1 or Custom 2.
Then add new mapping.
Map the keys by pressing the button. Click the scancode text box and press a button. Then check keycode and choose what key that you will assign. Here's what I assigned if I'm planning to buy the iHome Keyboard. I made two layouts, Universal (Windows) Keyboard, and Apple Keyboard.
Windows Layout
F1 -> F1 Key
F2 -> F2 Key
F3 -> F3 Key
F4 -> F4 Key
F5 -> F5 Key
F6 -> F6 Key
F7 -> F7 Key
F8 -> F8 Key
F9 -> F9 Key
F10 -> F10 Key
F11 -> F11 Key
F12 -> F12 Key
====================
fn Key -> Function Modifier
Control Key -> Left Control
Left Option Key -> Menu In Windows 8 RT, it's the Windows Screen, In older versions, it's Start Menu.
Left Command (Meta) Key -> Left Alt modifier
Right Command (Meta) Key -> Menu
Right Option Key -> Right Control
Click to expand...
Click to collapse
Apple Layout
F1 -> F1 Key
F2 -> F2 Key
F3 -> F3 Key
F4 -> F4 Key
F5 -> F5 Key
F6 -> F6 Key
F7 -> Play Previous Media
F8 -> Play/Pause Media
F9 -> Play Next Media
F10 -> Volume Mute, or Mute
F11 -> Volume Down
F12 -> Volume Up
====================
fn Key -> Function Modifier
Control Key -> Menu
Left Option Key -> Left Alt modifier
Left Command (Meta) Key -> Left Control
Right Command (Meta) Key -> Right Control
Right Option Key -> Right Alt modifier
Click to expand...
Click to collapse
Here are the rest of the non-alphanumeric keys and it will suit both layouts.
Other Keys For Both Layouts
Esc -> Escape
Delete -> Forward Delete
Prt Sc -> System Request / Print Screen
Insert -> Insert
"Screen" -> You can map any button you want. I choose Notification.
Tab -> Tab
Backspace (Left Arrow Key next to Home) -> Backspace
Home -> Home
Enter Return Key -> Enter
Left Shift -> Left Shift
Right Shift -> Right Shift
Click to expand...
Click to collapse
Hope this thread works!

[TUT] Disable Capacitive touch buttons+Home key on Xperia 2011 MDPI

[Only for those who don't like Capacitive touch buttons+Home key]
1 First of all make sure you have on-screen
buttons enabled. If you don't have on-screen buttons then just go to this thread to find out how to enable them-
http://forum.xda-developers.com/showthread.php?t=1940842
2 Download a root explorer or any similar explorer like that.
3 Navigate to
system>usr>keylayout, and look for a file named as " cyttsp_key.kl ".
4 Select it and open it as text with Root explorer's text editor.
5 There you will find following lines-
#KEY_MENU, KEY_BACK
key 139 MENU VIRTUAL
key 158 BACK VIRTUAL
6 Now all you have to do put # before these lines as shown below-
#key 139 MENU VIRTUAL
#key 158 BACK VIRTUAL
And done.
Now if you want to disable home key also then-
7 Again navigate to
system>usr>keylayout, and look for a file named as " pm8058-keypad.kl ".
8 Select it and open it as text with Root explorer's text editor.
9 There you will find following lines-
# this corresponds to kernel/arch/arm/mach-msm/keypad-hallon.c
#
# defines for values are in frameworks/base/include/ui/KeycodeLabels.h
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
# KEY_HOME
key 102 HOME WAKE_DROPPED
# CAMERA Related Key
key 212 CAMERA
key 528 FOCUS
10 Now again all you have to do put # before the line " key 102 HOME WAKE_DROPPED" as shown below-
# this corresponds to kernel/arch/arm/mach-msm/keypad-hallon.c
#
# defines for values are in frameworks/base/include/ui/KeycodeLabels.h
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
# KEY_HOME
#key 102 HOME WAKE_DROPPED
# CAMERA Related Key
key 212 CAMERA
key 528 FOCUS
11 Now just reboot and DONE!
This tutorial should be applicable to Xperia Ray users also because it has same button like our devices.
Press thanks if you think this post is useful to you.
Nice guide, been searching for this while I'm using Paranoid Android ( 3 months ago )
via XDA for Timescape™
Diaz1999 said:
Nice guide, been searching for this while I'm using Paranoid Android ( 3 months ago )
via XDA for Timescape™
Click to expand...
Click to collapse
Mankotialovely said:
Click to expand...
Click to collapse
Are we can disable the "big & ugly" home key with adding "#" in front of HOME_KEY
via XDA for Timescape™
Diaz1999 said:
Are we can disable the "big & ugly" home key with adding "#" in front of HOME_KEY
via XDA for Timescape™
Click to expand...
Click to collapse
Yes my friend, sure.
Home key is also added in this tutorial.
Great but one question, after performing this will keys work in cwm or not ?
vivek856 said:
Great but one question, after performing this will keys work in cwm or not ?
Click to expand...
Click to collapse
Keys will definitely work in cwm.
Disable Home
Thanks for the idea, and it works,
But my Home key is nonfunctional , so i would like to change my home key action into my camera key . IS it possible, I mean when i press camera key i want to wake up my 4n
sesath said:
Thanks for the idea, and it works,
But my Home key is nonfunctional , so i would like to change my home key action into my camera key . IS it possible, I mean when i press camera key i want to wake up my 4n
Click to expand...
Click to collapse
Yes it is possible but before that can you provide me little info about your rom and phone ?
Hello. Can make longpressing the menu button to bring tasks list? (multistak app list). Tq!

[Q] Huawei y210 kernel help

I compile a kernel for Huawey Y210 and has some bugs which I would like to know if you can solve
bugs:
rotation is reversed
brightness settings do not work
and the keys are poorly configured are:
Menu key = back
Home key = menu
Back key = home

Categories

Resources