Remapping the Flipout's hardware keys - Flipout and Charm General

I know this is the wrong section, this belongs in Flipout Development more than likely, but apparently, i don't have a sufficient post count to post it there. If a moderator would be so kind? ^_^
The application, ButtonRemapper, detailed at http://forum.xda-developers.com/showthread.php?t=850464 , only lets you bind certain functions to your keys.
I moved from a WM-based Samsung Epix to the Flipout, and sorely missed my dedicated comma key. I would get rid of the nigh-used SYM key for the comma key any day, and ButtonRemapper didn't do the trick.
So, i used Root Explorer to check out the keyboard profiles at /system/usr/keylayout/, and edited them in it's text editor. Of course, you can always pull the files with the SDK, but this is quicker and cleaner.
To bind the comma to the SYM key (key 162), i just changed one line from:
Code:
key 162 SYM WAKE_DROPPED
to
Code:
key 162 COMMA WAKE_DROPPED
for all the .kl files there that contained key 162. One reboot later, and bam. Figured i'd post this here for all those who care. I know i'm not the only one that punctuates my sentences properly, and appreciates a handy comma key.

Related

Question about Wizard keyboard

Does it has ESC key ?
I hate ppc "virtual" keyboard (default, RESCO, ...) because they cant send ESC key. This is important when you are using "vi" on PocketPutty application.
Or anyone know any virtual keyboard that has ESC key ?
Thanks
From the pictures and the I-mate K-JAM manual it doesnt appear to. Stop using VI, its terrible ;p
no it does not have a esc key
dvoraksip in the SDK does send escape keys (most complete keyboard I've seen, sends ctrl, alt, win key, has backspace and delete etc). But it helps if you can type using dvorak!
You could write a program to send custom keystrokes. I wrote a program once upon a time to send any keycode to current app, and this could be assigned to a hardware key etc. But it's a bit of a waste of a hardware key.
V
Escape key?
Maybe, but I am not sure about Escape key defined in Unicode:
http://ae.inc.ru/
AEKMap - AE Keyboard Mapper for Windows Mobile
J.
thereaperman said:
no it does not have a esc key
Click to expand...
Click to collapse
Nor a CTRL key. So a bit limited for terminal applications then!
You can get ^ and [ by using the Sym modifier on the Space key on H and K.
Dunno if that can be persuaded to send the CTRL-[ escape sequence though.

Key mapping

Inspired by the thread about changing the Pocket IE (or T-mobile) button, is it possible to remap that button to CTRL+C and the FN+PocketIE button to CTRL+V? Do these keyboard shortcuts even exist in CE.NET 5/WM5? At the very least I need them for remote desktop so if anyone knows how one might acheive this, I'd love them in a manly way
how hard is it to 'hack' WM5?
there would seem to be enough "spare" buttons on the Exec that one could be used as Ctrl...
the blue Fn button, doesn't have any key-combination bindings with X, C or V - so cut, copy and paste (keyboard shortcuts I miss the most, too!) could be done with Fn-X, Fn-C etc.
does anyone know how easy it would be to do this?
I agree that the missing [Ctrl]-key is a right pain. Sadly, I can't offer a solution, but experimenting with key combinations has shown up some oddities!
Holding [shift]+[Fn] followed by a key on the bottom row first puts a character into the current application before actioning the special function of that key.
For example, open Word, then press:
[shift]+[Fn]+[envelope] inserts character: "z"
[shift]+[Fn]+[windows] inserts character: "x"
[shift]+[Fn]+[PIE] inserts character: "c"
[shift]+[Fn]+[space] inserts character: "v"
[shift]+[Fn]+[symbol] inserts character: "b"
[shift]+[Fn]+[left arrow] inserts character: "n"
[shift]+[Fn]+[down arrow] inserts character: "?"
[shift]+[Fn]+[right arrow] doesn't do anything
Pressing:
[shift]+[Fn]+[c] unfortunately launches [PIE]
However, pressing:
[shift]+[Fn]+[v] first inserts the character "v", but then opens the (tap-&-hold) shortcut menu with "Paste" highlighted. If you have some text in the clipboard then it will automatically paste that text into the application. Just a pain that it inserts the "v" first.
Above all based on the O2 XDA Exec.
I've tried to get [ctrl] working with Aekmap but had no luck.
It's a shame because it's not just copy and paste that needs a ctrl key. I use pocket PuTTY a lot to administer *nix machines and [ctrl]+c is kind of vital.
You just hold Fn and press Space to get the edit menu.
That's why the symbol on it is the same as the seldom-used edit key to the right of the Alt-Gr on a regular PC keyboard.
Or am I missing the point here?
I think you are missing it a little. I (and I'm sure others) use terminal services client quite a bit and not having a CTRL key is a real pain. In some circumstances, your suggestion works, but not universally.

AE Button PLus - mapping all keys of the keyboard

AE Button Plus(version 2.6.2 beta) works perfectly in my samsung i780. However to be perfect would like to do in the same way how did aquacalendar (symbian): all keys of the keyboard are mapping to the main functions of the pim. For instance i would like to have the following:key 1 = PI calendar; key 2 = PI month; key 3 = PI tasks, etc.
Using the functionality "add button", I can make that to all the keys of the keyboard. The problem is that i lose the original characters of those keys that only follow AE Button commands.
That's nice to know.
(Can you please post more direct questions next time? Your post doesn't even have one. Also, the "Development and Hacking" forum is NOT the right place for this type of post, as I see no reference to development OR hacking. Please post this type of thing in the General section.
Anyway, the only application that I know of that has per-application settings is VITO ButtonMapper, see if that works for you.)
I understand your question.
set the keys up with AEButton for double press, triple press, or long press. leave single press alone and you should still have the original function of the button on a single press.
If you are trying to change what the buttons of your device do, then I would consider that to be hacking, so this is, indeed, the proper place to post this request.

Milestone 2 physical keyboard mod

I am trying to edit my motorola milestone 2 physical keyboard a little. What I wan't to achieve is to make the up, down and left dpad buttons become å, ä and ö. I rooted my phone and with root explorer I managed to edit the umts_milestone2-keypad.kl and qwerty.kl files from:
Code:
...
key 232 DPAD_CENTER WAKE_DROPPED
key 108 DPAD_DOWN WAKE_DROPPED
key 103 DPAD_UP WAKE_DROPPED
key 102 HOME WAKE
key 105 DPAD_LEFT WAKE_DROPPED
key 106 DPAD_RIGHT WAKE_DROPPED
...
to something along with:
Code:
...
key 232 DPAD_CENTER WAKE_DROPPED
key 108 DPAD_DOWN WAKE_DROPPED
key 103 DPAD_UP WAKE_DROPPED
key 102 HOME WAKE
key 105 Z WAKE_DROPPED
key 106 X WAKE_DROPPED
...
to be able to see if I am editing the files I want to edit, but when I reboot my phone up, down, left and right still does the same thing. Am I doing it wrong or am I editing the wrong files?
Thanks!
Edit: This might fit better in android development :S.
Anyone found a solution for this?! I've been trying to search everywhere how to reconfigure the physical qwerty for ä ö and å. Long press is not an option for me.
qemil said:
Anyone found a solution for this?! I've been trying to search everywhere how to reconfigure the physical qwerty for ä ö and å. Long press is not an option for me.
Click to expand...
Click to collapse
A while back I was trying to edit the keyboard with no luck. On the Droid 2 if you long press certain buttons you can bring up a box with those letter variants. I assume that's what you meant by longpress is no option, though.
I don't know if there is a language setting or something you can edit within the settings for the keyboard on the Milestone maybe?
The language settings won't do it.
Probably only way is through rooting and somehow editing the keyboard mappings. Haven't found a single instruction how to do this though.
This is a major issue for me since I'd like to go for a hardware qwerty device to achieve greater typing speeds but this long-press-and-select-from-screen method is too slow and kinda kills the benefit of having a physical keyboard.
Did you edit all of the files? I don't have my droid 2 yet, but I've done this on my nook color and am looking at my droid x. Did you edit qwerty.kl, cdma_droid2-keypad.kl, and maybe sholes-keypad.kl, too? The buttons weren't remapped on my nook until I'd edited all of the files the same way. Hope this helps.
Could somebody please try out what RMHisCOOL suggests? I'll buy this phone as soon as I get confirmation that the hardware keyboard can be remapped.
qemil said:
Could somebody please try out what RMHisCOOL suggests? I'll buy this phone as soon as I get confirmation that the hardware keyboard can be remapped.
Click to expand...
Click to collapse
If nobody else does, I definitely will when I get my D2. Sent today from VA to MD so I should have it in my hands by Friday for sure, I would imagine.
RMHisCOOL said:
If nobody else does, I definitely will when I get my D2. Sent today from VA to MD so I should have it in my hands by Friday for sure, I would imagine.
Click to expand...
Click to collapse
Thank you so much! I'll be checking this thread daily.

[PRO] Remapping hardware buttons / hardware keyboard

Hi folks,
I'm trying to remap the hardware buttons of my rooted Xperia Pro with stock ICS 4.0.4, but there are some quirks that trouble me.
Basically, I want to
1.) remap the language button on the QWERTZ hardware keyboard.
2.) Prevent the camera button from unlocking the phone - just press power to show the lock screen, then hold camera button, the press home key and you'll see how easy it is for the phone to unlock in your pocket.
So far, I parsed through the keyboard layout files in /system/usr
I remapped key 368 in pm8058-keypad.kl to CTRL_LEFT, which did not seem to make any difference! Language button still invokes language dialog
I also modified quertz.xml and qwerty-en.xml by replacing META_LANGUAGE with META_CTRL_LEFT - did not make any difference.
Of course, I rebooted the phone inbetween...
Regarding 2), I have no clue. Butting WAKE_DROPPED behind CAMERA and FOCUS in pm8058-keypad.kl does not help.
I could use some help with key remapping as well. If I find some info i'll send it your way.
No progress for me so far... anyone?
kyanox said:
I could use some help with key remapping as well. If I find some info i'll send it your way.
Click to expand...
Click to collapse
I want to re-map the 0 (Zero) key and the OK button orientation on the PIN Lock feature. Any info what files I need to change?
I GOT IT!!! partially at least....
Reading through http://source.android.com/tech/input/key-character-map-files.html and http://source.android.com/tech/input/key-layout-files.html once again, I finally found something that pointed me into the right direction!
I order to make my change to the Language button work (remapping key 368 to CTRL_LEFT), there are two possible ways:
1.) Set hardware keyboard to FULL keyboard type by replacing "type ALPHA" with "type FULL" in /system/usr/keychars/pm8058-keypad.kcm
This will make the hardware keyboard work without any additional GUI, so pressing shift will allow you to select text and copy&paste via ctrl+a,c,v,x now works (This still depends on the app you are using. Some do ignore this, some will still work with menu+a,c,v,x instead)
But beware:, in order to enter numbers or upper case letters, you now have to keep the modifier key pressed.
Printable characters can be edited via /system/usr/keychars/pm8058-keypad.kcm, non-printables like modifier keys can be edited via /system/usr/keylayout/pm8058-keypad.kl
Android keycode names can be found here: http://source.android.com/tech/input/keyboard-devices.html
Until now, I was unable to create a solution for entering special characters like ä,ö,ü
I tried to via sym or meta keyword in .kcm file while mapping the Sym key to SYMBOL or META_LEFT via the .kl file, but it didn't work...
2.) The .xml files in /system/usr/keyboard-config/layouts are used only with the keyboard configured as "type ALPHA". In order to identify the correct .xml file, you have to parse through the files in /system/usr/keyboard-config/languages and look for the script keyword, which in conjunction with the declarations in /system/usr/keyboard-config/keyprint.xml will tell you to the layout xml file for your device localisation.
Now, in order to remap printable characters, you have to edit the correct layout xml file and for non-printable characters, you have to edit the scancodes.xml file in /system/usr/keyboard-config.
Unfortunately, shift-selecting text will not work with "type ALPHA" mode and it seems that editing scancodes.xml is not sufficient to remap language button to CTRL_LEFT, but the .kl file has to be changed, too.

Categories

Resources