[Q] 8bitty Gamepad Workaround - General Questions and Answers

Hi,
I recently got an iCADE 8bitty gamepad. I initially assumed it would be easy to use with emulators, given that it works as a bluetooth keyboard. Simple right?
Wrong. For no clear reason, it generates a key down and key up event for each key down and key up event, and the keycodes are different.
For example, if I press down the key in the bottom right corner, I get:
Keycode 40 down
Keycode 40 up (this immediately follows the key down event)
and when I release it:
Keycode 50 down
Keycode 50 up
The only emulator that I can find that supports it currently is SuperGNES. Fortunately, it's great, and they even added a blog post here about supporting the controller in an app: blog.supergnes.com/?p=339
My question is, is there a way I can fix it so that any app will see just one key down event and a corresponding key up event for each key press? If I can do that, it should work in all emulators.
I guess making an IME is out of the question since I'm running KitKat and BluezIME can't work anymore since Android 4.2.
So maybe I can hack the keyboard driver...?
Any ideas would be welcome. In the mean time I'll try hacking open source emulators to add support.
Thanks!

Related

Key Assign Problem (Morphgear+PocketGBA)

Hello, this is my first Post in this Forum.
I recently got a HTC Touch Pro and installed Morphgear and PocketGBA.
Now i have a Problem with assigning the keys propery..
I would like to use the Keyboard (W,A,S,D) for the directional pad (Up, Down, Left, Right).
But every key gets the same Keycode, in morphgear it is 229 and in PocketGBA its 00E5.
Now when i press a key in a game, every command (Up,Down,Left,Right) gets done at the same time.
Both emulatores worked fine with the Keyboard of the Tytn II.
I already searched in different Forums, Google etc. but could not get any answer.
It would be cool if anyone could help me with that.
Greetz!
Edit (Seems to be the same Problem here):
http://forum.xda-developers.com/showthread.php?t=423444
Face buttons/controller?
Hello,
Sorry to not have an answer for you but I am also considering this phone. I have a tilt and can't do without morphgear (which works fine for me using the buttons on the face of the phone).
I have a question for you: are you unable to use the controls on the face of the touch pro with morphgear? Or do you simply prefer the keyboard as a controller.
Any information on this is much appreciated...
Thanks!
I wrote a small application for Raphael which made it possible to map the following buttons in emulators (e.g. PocketSNES, Morphgear...etc) and some games possibly:
A, S, X, Z, 1, 2, -, =, backspace, enter, left, right, up and down.
Usage:
1. Download the cab and install.
2. Start Menu -> Programs -> Games -> Run "K for Raphael."
3. Launch any emulator and you can set the buttons mentioned above to keys in game.
Please note that this is just a workaround, as you can see the key code catched by the target application is not the actual key code of the hardware button. So, please remember to close this application when you no longer need it.
If you need more keys to be in the white list, please let me know.
I hope HTC can pay more attention to this problem. Nothing's more shameful than paying $800 for a full QWERTY device just for text messaging and web browsing.
Is it possible to have the keys send the code they are supposed to send? I'd like to run some dos games on some dosbox clone, but if they don't get proper keypresses it's useless?
hi there, im got an HTC touch pro too, but i downloaded PocketGBA and i cant install it, when i try to install it, it says installation was unsuccesfull... i dont understand why...
a frind got a HTC touch and it works with his phone..
why is that??
and sry for my english..!!!
thx
I am using MorphGear and it is really good. Especially now when we can use the keyboard!
marios96 said:
I am using MorphGear and it is really good. Especially now when we can use the keyboard!
Click to expand...
Click to collapse
coul u put the link please or pm me please.. i dowloaded one, but seems its broke..
dilta said:
I wrote a small application for Raphael which made it possible to map the following buttons in emulators (e.g. PocketSNES, Morphgear...etc) and some games possibly:
A, S, X, Z, 1, 2, -, =, backspace, enter, left, right, up and down.
Usage:
1. Download the cab and install.
2. Start Menu -> Programs -> Games -> Run "K for Raphael."
3. Launch any emulator and you can set the buttons mentioned above to keys in game.
Please note that this is just a workaround, as you can see the key code catched by the target application is not the actual key code of the hardware button. So, please remember to close this application when you no longer need it.
If you need more keys to be in the white list, please let me know.
I hope HTC can pay more attention to this problem. Nothing's more shameful than paying $800 for a full QWERTY device just for text messaging and web browsing.
Click to expand...
Click to collapse
Great could you make a fit for azerty TP ?
dilta said:
I wrote a small application for Raphael which made it possible to map the following buttons in emulators (e.g. PocketSNES, Morphgear...etc) and some games possibly:
A, S, X, Z, 1, 2, -, =, backspace, enter, left, right, up and down.
I hope HTC can pay more attention to this problem. Nothing's more shameful than paying $800 for a full QWERTY device just for text messaging and web browsing.
Click to expand...
Click to collapse
Just question, when I click on " TF3D Toogle " but got a error message " cannot toggle TF3D plug-in "... Did I missing something?
rayho said:
Just question, when I click on " TF3D Toogle " but got a error message " cannot toggle TF3D plug-in "... Did I missing something?
Click to expand...
Click to collapse
I forgot to mention that you don't need to toggle TF3D to enable the keyboard mapping function.
Please ignore the TouchFLO 3D Toggle button. Thanks to the fact that TF3D almost consumes no CPU time when it's in the background. After some tests, I found the toggle nearly useless.
BTW... I'll try to spend some time dealing with the key code problem this weekend. I myself also got some games to play with DOS emulators. sigh...
cool, if you manage to get it working for all the keys, ill might donate a small amount if you give us your paypal, and maybe even some other people?
With the workaround listed above, what's the maximum number of action buttons you can currently have - besides the directional buttons on the keyboard?
Also - if you use that workaround, can you perform diagonal motion by hitting two buttons at once?
A, S, X, Z, 1, 2, -, =, backspace, enter, left, right, up and down
That is a total of 10 action buttons and 4 directional!
marios96 said:
A, S, X, Z, 1, 2, -, =, backspace, enter, left, right, up and down
That is a total of 10 action buttons and 4 directional!
Click to expand...
Click to collapse
Thanks for clearing that up - that's awesome. I thought that portion of the post meant that the letter buttons REPLACED the 4 directional buttons. So I thought there might only be the 4 directional buttons and 2 action buttons.
What about diagonals - or pressing 2 buttons at once? Can the Raphael handle it?
P0ll0L0c0 said:
Thanks for clearing that up - that's awesome. I thought that portion of the post meant that the letter buttons REPLACED the 4 directional buttons. So I thought there might only be the 4 directional buttons and 2 action buttons.
What about diagonals - or pressing 2 buttons at once? Can the Raphael handle it?
Click to expand...
Click to collapse
YES! Emulating games on TP is awsome! Every game I tried worked great with MorphGear...
Hey guys . I didn't want to start another topic. As long as you talking about emus, i got a question about them. Can you recomend me best emus for Snes, Genesis, Nes, GBA, SEGA MasterSystem and SCUMMVM (lucas arts old point & click games) From what i understand there are diferent emus on the net , please tell me what is the best one. Aso does Sega Cd works thrue some Genesis emus
Thanks in advance
tokitad said:
Hey guys . I didn't want to start another topic. As long as you talking about emus, i got a question about them. Can you recomend me best emus for Snes, Genesis, Nes, GBA, SEGA MasterSystem and SCUMMVM (lucas arts old point & click games) From what i understand there are diferent emus on the net , please tell me what is the best one. Aso does Sega Cd works thrue some Genesis emus
Thanks in advance
Click to expand...
Click to collapse
In fact would be a great idea
guys , anyone?
just download a bunch and test them for yourself, or try and use the search function before asking
KforTouchPro is released
I figured out the way to let you map keys to their correct key codes. The problem lies in the built-in M5 IME, which intercepts virtual key codes sent by the OS without proper handling.
This release of KforTouchPro simply allows you to switch between M5 and your system default IME as the "preloaded IME" at run time.
Instructions:
1. Download & install the CAB.
2. To play emulators/games, click on the "Disable M5 IME" button of KforTP.
Unlike KforRaphael, you may close KforTP after disabling M5.
Congratulations, your hardware keyboard now talks directly to the M$ IME in correct key codes.
3. When you want your M5 functions back (auto-completion/auto-corrections), just click on the "Enable M5 IME" button. No soft reset is needed.
Afterall, I still didn't feel so good for the need to switch between two modes: gaming & typing. Maybe M5 & HTC should be responsible for this.
BTW.. I just put a relay IME between your current preloaded IME and the M$ default IME. Thus, it should be working even if the bundled IME is not M5.
Reminder: Don't forget to backup your device before giving it a try.
Updated GMT+8 6:41 PM: I am sorry for causing system crash for some users. The attachment was temporarily removed. Now I only get positive confirmation from traditional Chinese devices. I'll try to figure out the reason causing the crashes.

Left/Right Key mapping

I need to map keyboard buttons to reflect Left & Right soft keys so that while on keyboard mode, I press a button for SMS send or new.
It is quite annoying to pull the stylus to click "Send"!
here and/or here is discussion. the solution has not been found till this time.
this was posted by dinfinity
I've been trying to remap my Back (keycode: 0x405C --> 16476) and Home (keycode: 0x00ED --> 237) buttons as well and besides the remappings not working in Manila, mapping the Back button to OK/Close with AEB resulted in double OK presses every time I used the button, which is obviously not what I want.
I've been scouring the registry and I haven't done any fiddling with trying out different settings yet, but there's a set of registry key folders (on my Touch Pro):
HKCU\ControlPanel\Keybd\ChangeBackVKeyCode
This one contains a reference to Opera (Opera_MainWndClass, DWORD 8 == Backspace) and one to Youtube (HTCYOUTUBE, DWORD 27 == Escape from the top of my head).
It's obviously possible to create an extensive list of window classes for which the keycode could be remapped, but it would be easier if wildcards of some kind would be supported. Alternatively, the application that looks at this registry entry could be hacked, but I'm not too sure about how easy that would be
HKCU\ControlPanel\Keybd\ChangeHomeByPostMessage
This one contains one key: Manila (DWORD = 102037). This is clearly responsible for sending a message with value 102037 when the window "Manila" is active (which effectively makes it return to the home tab of Manila).
If I achieve any results, I'll edit this post.
_______Edit______
Done some fiddling:
Unsurprisingly, the registry keys are read by keypad.dll. It does not seem to support any other buttons and this version is specific to the Raphael, so it seems from this line in the dll:
"c:\wm612_19965\platform\raphael\drivers\keybd\dev ice\raphael_evt\util.cpp"
I'm not sure whether the Diamond keypad.dll contains similar references to the mentioned registry keys (anyone check this?)
Some other interesting registry keys (I haven't fiddled with these yet) I found:
SOFTWARE\HTC\ezsip
SOFTWARE\HTC\My5\CustomizedKey
Anyway, based on the window class, the back key can be successfully remapped. I remapped it, specifically for ActiveSync (damn window is open all the time, might as well serve some good!), to 0x85 (Decimal: 133) which is F22 (http://msdn.microsoft.com/en-us/library/bb431750.aspx). Using FdcSoft TaskMgr it is pretty straightforward to determine window classes.
AEB Plus on the Kaiser gave me 0x4073 as the keycode for the hardware OK button, which should be mappable, but I haven't tried this yet.
Alas, my fiddling time for today is spent, but I'll try some more tomorrow.
___ Edit2 ____
Still did some more. While crossposting in the Raphael Forum, I had a stop-think-and-google-moment and found this:
http://msdn.microsoft.com/en-us/library/aa923831.aspx
Perhaps the NULL and HWND_BROADCAST can be abused in the remapping of the home button...
Click to expand...
Click to collapse

[Q] Android Keyboard with Alt key?

Is there a way of submitting Alt commands via an Android keyboard to my windows PC?
I presently use Air Mouse on an Ipod Touch to control my HTPC remotely.
This is the only use I have for the thing and I'd like to think that there will be the perfect Android solution for me soon.
The benefit of Air Mouse over RemoteDroid and GMote is the Alt key ability which neither of the Android apps have (or if they have I haven't found it yet), a function I find a lot of use for.
(I should add that the only Android device I have at present is an HTC Desire....so I guess that could be the limitation rather than the apps)
I don't really understand what you mean by alt key ability. Could you please explain, and maybe we can help sugest a solution?
What is it that this alt key ability of air mouse do, or more importantly, what is it that you want to accomplish with such an alt key ability?
Thanks for the reply, I had a feeling I wasn't being very clear.
I'd like to use my Android device as a trackpad and mouse for my HTPC.
My media player of choice (MPC-HC) uses a lot of keyboard shortcuts with the "Alt" signifier. For example Alt+X closes the program. These shortcuts are especially important because the program runs in a fullscreen mode which removes any context menus.
All the various android soft keyboards I have seen have no Alt key so I would lose a lot of functionality controlling the HTPC from an android device.
I have read that pressing the trackball twice on an HTC Desire may be a substitute for pressing the "Alt" key but have never got this to work in practice.
Just found an app that might suit your needs. I suggest you check it out.
GRemote Pro
Edit:
Ok, I just tried this app out, and it does exactly what you need.
It comes packed with an app alt, ctrl, tab and del buttons that let you alt+tab among other things.
I didn't see MPC-HC in the server setup, but that's not a problem as you can configure your own profiles with specific commands.
Fair warning, it's a bit on the slow side (seems to be a port of a winmo app), but I'm sure it'll get better with time and updates. It's a very polished Remote app for android and it even comes with drivers for a G-sensor controller to play games with (use android as wii-mote/controller).
This app defenitly rocks.
You sir (or madam) are a legend.
I was disappointed at first to see that this app doesn't simply add Alt and Ctrl keys to the standard keyboard, but it does allow considerable control of the media player directly.
Need to have a much longer play to see if it's really what I need...but I appreciate your effort already.
Another Suggestion
Have you tried unified remote?
It's got a full windows keyboard, You can create your own custom remotes and if you wanted, you could even have multiple droids connected.
Yes, this reply is s bit late, but better late than never
try Hackers Keyboard
I installed hackers keyboard and tried to activate it. It gives a prompt message that this will collect all information except passwords, including personal data and credit card numbers....!!!

[TUTORIAL] External keyboard remapping [3.0+]

Disclaimer
This short tutorial is based on my own research regarding missing keyboard layout mapping in stock Honeycomb/ICS Android for my Motorola XOOM. It is not intended to be a complete description of the Android input system, please refer to the official documentation for more information. This text should suffice for anyone with a basic knowledge about IT Anyway, if you break something, 'aint my fault. Won't take any responsibilities for YOUR actions.
Requirements
- rooted Android 3.0+ device (3.0, 3.1, 3.2, 4.0)
- text editor
- external keyboard to play with
Background stuff
(simplified, no bashing )
Keyboard (connected to any device) sends key codes to the target device. Key codes are just plain numbers, eg. if you press the "A" key on the keyboard, the computer reads "30" number. Since "30" is quite difficult to remember as being the "A" button, it is much more handy to describe keycodes as char codes: in the target software we get a KEY_A instead of 30.
Android uses two files for keyboard key-to-output mapping: .kl (key layout) and .kcm (key character map).
*.kl file describes the mapping between real keyboard codes to their virtual values, eg. 30 => KEY_A.
*.kcm file converts char codes to key events (KEY_A pressed? Send character "a". Shift + KEY_A? Send character "A", etc.)
So if you connect an external keyboard (USB, BT, Ir?) to your Android device, you get the following chain:
Code:
[keyboard] => [kl] => [kcm] => [application]
All devices (well, most of them) can be identified by VID (Vendor ID) and PID (product ID). VID and PID are 4 hex symbols each.
Android by default uses /system/usr/keylayout/Generic.kl and /system/usr/keychars/Generic.kcm for keyboard handling. If you look into /system/usr/keylayout/ and /system/usr/keychars/ you may find some more keymaps, including something like Vendor_xxxx_Product_xxxx.* Those files are used for specific devices, eg. Vendor_045e_Product_028e.kl is used for XBox 360 controller. When you connect the keyboard, Android checks the peripherial device VID and PID and looks for matching kl and/or kcm. If there is no matching file found, Generic.kl/Generic.kcm is used instead (disjoint -> you may have a specific kl and generic kcm, generic kl and specific kcm, etc.).
You may get the PID/VID of your external keyboard under for example Windows (in device manager [devmgmt.msc] find your keyboard and check its details [properties->details], for example HID\VID_046D&PID_C312\6&26DA469B&0&0000 => Vendor_046d_Product_C312). So if you would like to prepare a keymap for my USB Logitech keyboard, you will have to provide me with Vendor_046d_Product_C312.[kl|kcm] files
Both KCM and KL files are encoded in ANSI -> no special (national) characters allowed except for 'classic' set! If you want to include any national or extra character, you need to use their unicode hex values in \uXXXX variant. See http://www.tamasoft.co.jp/en/general-info/unicode.html for a huge list of unicode characters.
Getting hands dirty
- pull Generic.kcm from your device via adb:
Code:
adb pull /system/usr/keychars/Generic.kcm
- open it with Notepad++
- scroll through the blahblah about not modifying the file to the section with
Code:
key A {
label: 'A'
- this is where your work starts!
In general the map is composed as fillows:
Code:
# comment starts with a hash
key [keycode] {
label: '[label]'
base: '[key without any modifiers]'
[modifier]: '[key with modifier]'
[modifier]+[modifier]: '[key with both modifiers]'
[modifier],[modifier]: '[key with any of listed modifiers]'
[modifier]: fallback [magic key] # read below
[modifier],[modifier]: none
}
Modifiers can be: ralt, lalt, alt (right/left ALT, any ALT), rshift, lshift, shift (right/left SHIFT, any SHIFT), rctrl, lctrl, ctrl (left/right CTRL, any CTRL), capslock (no right CAPSLOCK on the kb, sorry ), rmeta, lmeta, meta (right/left WIN key, any WIN key). There are probably more, but didn't encounter any...
So, let's make the A key work like on Polish (Programmer) keyboard layout (namely a, A, ą, Ą letters):
Code:
key A {
label: 'A'
base: 'a'
shift, capslock: 'A'
ralt: '\u0105'
shift+ralt, capslock+ralt: '\u0104'
lalt, meta: none # ctrl omitted - ctrl+a does something...
}
Polish letters "ą" and "Ą" have their unicode values of 0x0105 and 0x0104 respectively, thus in order to have them available via right alt + A, we use ralt modifier and shift/capslock ralt modifier. Please note, that it is necessary to have 'shift' modifier for capital A.
Code:
fallback [i]magic key[/i]
is used to map certain key combinations to other commands ("hardware buttons"), such as HOME, SEARCH, MENU, APP_SWITCH, etc. Thus if for example you would like to have lalt+tab for app switching you would have to use the following:
Code:
key TAB {
label: '\t'
base: '\t'
lalt: fallback APP_SWITCH # alt + tab :)
ralt, meta: none
}
And now a Windows+D for desktop shortcut:
Code:
key D {
label: 'D'
base: 'd'
shift, capslock: 'D'
meta: fallback HOME # show desktop
alt: none
}
In short
- in most cases the Generic.kl file is ok, there is no need to prepare .kl for a common keyboard
- either edit Generic.kcm or get VID/PID of your keyboard and prepare a key layout for your language and push it to /system/usr/keychars/
Hints
- backup your Generic.kcm file!
- try to be as specific as possible if you do not use a combination, map it into 'none' section; when you map ralt, don't include alt in 'none', include lalt instead. Remember, that some key combinations have special meanings (ctrl+d, ctrl+c, ctrl+v, etc), and it is better not to include them in your map.
- backup your layout - I lost a lot of time re-creating my keymap after ROM upgrade (symbolic link is a better idea!)
- look through the entire Generic.kcm file - there are a lot of fancy key combinations, for example ESCAPE key can !by default! handle MENU, BACK and HOME keys!
- possible fallback keys are listed in .kl file
- use logcat! You can spot information about external input device and a note about applied KCM/KL files
Finally
Hit "thanks" if you find it helpful. If you prepare a good (national) key layout, please share it!
For Polish national characters we can use "Polska Klawiatura Programisty V2" it works very well with external keyboard on MoPho with 2.3.
thanks for the information. I couldnt find the the Android ICS/Honeycomb virtual key for task switcher..do you know what name is that Task switcher virtual key ?
Hi, I am a newbie with android....
I modify the kcm file to (spanish layout, Generic to Vendor both attached):
An I can't make it work, maybe:
Something is missing?
Errors in the kcm file?
Any advice would be appreciated :crying:
I am away from my PC, but:
1) run Terminal Emulator before connecting the external keyboard
2) enter superuser mode (su)
3) launch logcat (logcat)
4) launch another Terminal Emulator window
5) enter superuser mode (su)
6) connect external keyboard
7) break logcat feed
8) launch dmesg (dmesg) in other window
9) check logcat and dmesg outputs looking for errors
I'm on vacation till next Sunday. I will help you directly once I'm back
Sent from my Galaxy Nexus using Tapatalk 2
Thanks for the help:
Here are fragments of:
dmesg
Start called p = df8e3820
starting connect time
DWC_OTG : [tcc_set_vbus] vbus_state:1
usb 1-1: new low speed USB device number using dwc_otg
usb 1-1: device v1241 p1503 is not supported
input: USB Keyboard as /devices/platform/dwc_otg.0/usb1/1-1/1-1:1.0/input/input5
Click to expand...
Click to collapse
logcat
D/EventHub( 1114): No input device configuration file found for device ' USB Keyboard'.
E/KeyCharacterMap( 1114): /system/usr/keychars/Generic.kcm:454: Malformed character literal.
E/KeyCharacterMap( 1114): /system/usr/keychars/Generic.kcm:454: Invalid character literal for key.
Click to expand...
Click to collapse
I will check line 454 and see what I can do.
UPDATE
So I checked the 454 lien an a 'u' was missing, "\00xx" to "\u00xx".
I use the droidedit pro (1.15.2, and god the save file doesn't work unless root mode is enabled), changed in the ext_sd version use the terminal and copy then I connect the keyboard and it work, oh yeah it simply works (just a fu..ing 'u' for 22kb file)
Anyway thanks for the tip it really, REALLY help me :highfive: :highfive: :good: :good:
Thanks for this, will come in handy.
Hi everyone! Need some help with character map modding for Jelly Bean. I need to assign multiple letters to one button, e.g. "A" for single tap and "[" for double tap (just an example, don't mention).
What I found on source.android.com:
http://source.android.com/tech/input/key-character-map-files.html said:
The following keyboard types are recognized:
...
PREDICTIVE: A keyboard with all the letters, but with more than one letter per key.
This type of keyboard is generally designed for thumb typing.
Corresponds to KeyCharacterMap.PREDICTIVE.
Click to expand...
Click to collapse
Seems like the one thing I need, but I haven't found any syntax explanations or charmap examples for that layout type. Neither on AOSP pages, nor via Google. If your device uses such keymap type or you just know the syntax, post here examples, or attach kcm files. Any hint is good.
Android 4.2.2 - Virtual
Hi
Many thanks for this guides.
On my device Virtual.kcm is used (Acer A1-811, android 4.2.2)
Obviously it is nice to modify some file, rather than to pay 2$ for some application to do such mappings to right characters.
Regards
Logitech K400
Not sure if this goes here, but I have a Logitech K400 keyboard and it has some "special" keys, like the music player key.
What I want to do is to change the default player that opens when pressing that key, in my case it would be Poweramp.
The keyboard also has some other keys on the function keys, and when pressed some of them just are letters, want to edit this too.
There is also a "lock pc" key that opens S Planner.
I hope someone knows what I mean and can help me.
Mapping an external keyboard
In attempting to re-map an external keyboard, i have succesfully found and edited the P1_keyboard.kl file for instance changing the function of the voice search button from performing that function to performing an "Enter" or typing a letter "B" . However what i am trying to do is to use that button to do a combination of Both Letter B and then ENTER, i have tried "+" space etc but with no luck... Is this possible to do in any way?
kcm file has no effect
I create this file for the logitech K810
/system/usr/keylayout/Vendor_046d_Product_b319.kl
This successfully remaps keys.
However creating and editing this has no effect:
/system/usr/keychars/Vendor_046d_Product_b319.kcm
The generic behavior also does not match Generic.kcm
One example is Alt-Tab which switches actually switches applications on my device. It is not mentioned anywhere in anything in /system/usr. Redefining
Alt-Tab in the kcm file has no effect.
I am running KitKat on a Galaxy Note 10.1 2014.
file permissions
injola said:
I create this file for the logitech K810
/system/usr/keylayout/Vendor_046d_Product_b319.kl
This successfully remaps keys.
However creating and editing this has no effect:
/system/usr/keychars/Vendor_046d_Product_b319.kcm
The generic behavior also does not match Generic.kcm
One example is Alt-Tab which switches actually switches applications on my device. It is not mentioned anywhere in anything in /system/usr. Redefining
Alt-Tab in the kcm file has no effect.
I am running KitKat on a Galaxy Note 10.1 2014.
Click to expand...
Click to collapse
Just a guess, are the file permission set appropriately? (chmod 644 /system/usr/keychars/*.kcm)
Ctrl+SPACE does not work
On my nexus7 2012 4.4.4, chroot debian wheezy is running.
When I use emacs with Apple Wireless Keyboard (JIS).
Ctrl-SPACE does not allow me to set mark,
although keep pressing them for about one second just makes it work.
(but keep pressing makes flickering "Mark activated", "Mark deactivated"...)
In the kcm file, CTRL+SPACE is specified as "fallback LANGUAGE_SWITCH".
I tried changing it to none, or commenting out the line, but these doesn't affect.
I also used keytest.apk to inspect the behavior.
It seems just when CTRL+SPACE is pressed, no event happens...?
Does anyone know how to make Ctrl+SPACE (without keep pressing) function as setting mark ?
thank you in advance.
Genius luxepad 9100 keyboard
Hi i have this keyboard and android 4.2.2 i want the keyboard with spanish layout without pay an app, i want to choose the language on the system. Thanks in advance
Keycodes not recognised
Hi there,
I have a problem where I can't remap a key because it's not showing any keycode.
That is: standard keys like A, B, C, etc are ok: I can see their scan code and change it if I want to, but I don't.
Keys like Volume_up, play_pause, etc I would like to have them changed, but I cannot as I can't see any scan code when I press them.
I know all keys work as I tested the remote on windows and it works properly, and I can see keycodes there (but they are not the same as in android, so I can't use windows' keycodes)
Thank you if you can help
enter to send message
hello everyone! does anyone solve question about ENTER key to sending message insdeat of new line command? combination of buttons not works too for the sending messages....
android 4.4.2 + universal external keyboard (with comand buttons)
Toggle Languages
Thanks for this helpful and specific tutorial. :good:
I am trying to map keys for Urdu language. :angel:
My question is, will it work properly with lollipop?
Will it be able to toggle between language.
...
Thanks in advance for you kind information
_TB_TB_ said:
Disclaimer
- rooted Android 3.0+ device (3.0, 3.1, 3.2, 4.0)
Click to expand...
Click to collapse
Hi!
Is there any way to replace kcm without loosing your warranty?
Code:
adb push move /system/usr/
push: move/keychars/Virtual.kcm -> /system/usr/keychars/Virtual.kcm
failed to copy 'move/keychars/Virtual.kcm' to '/system/usr/keychars/Virtual.kcm': Read-only file system
Should I change permissions to put back onto system/usr?

Remap gamepad buttons

Hello there!
I am trying to get a Shanwan Generic Gamepad to work with my Tronsmart MK908.
I own two alike gamepads. They both basically work, but send D_Pad_xx and Generic button messages to my system.
I have installed the following apk, to see what is sent by my gamepads: [ github.com/chrisboyle/keytest/downloads ]
It shows me, that both gamepads send the same signals to my Android Mini PC.
As I plan to make them work with MAME4DROID, I would like to remap the inputs to letters (as if sent by a keyboard), which I can again remap to certain actions in MAME4DROID (latter works).
I have found a ressource on the internet which describes how to define keys mapped to a certain keycode from a certain device [ source.android.com/tech/input/key-layout-files.html ]
I have installed USB Device Info [ de.appszoom.com/android_applications/tools/usb-device-info_btyps.html ] to see how the gamepads are seen by my Android PC. Whatever Vendor or ProductID (changes from tab "Android" to tab "Linux") I name my *.kl file after, I cannot remap the keycodes sent from my gamepads.
Does anyone of you know how to map gamepad inputs to, say, letters of a keyboard?
Sorry for not posting real URLs, but I am not able yet (<10 posts)...
Thank you so much!
LeFish

Categories

Resources