Hey y'all
Just decided to try playing doomppc with my bluetooth keyboard.
However, I need to map some of the actions onto the keyboard. That consists of changing the keycodes on doomrc.cfg file.
For the directions, I've figured out how to map it. However, I don't actually know what the keyboard is sending keycode wise to the pda, so I don't know how to change the rest of the commands.
I've gotten AE Button Plus, which seems to detect some buttons as four digit hex codes (2011 for ctrl, 005A for Z).
Looking into doomrc.cfg, it takes 3 digit keycodes (172-175 for the direction keys, for example)
So....how do I go about finding otu the 3 digit keycodes for each key on my PPC?
Nevermind...I figured out a workaround
Related
Hi,
I want to map keys in from my flash movie with actionscript. Does anyone know if this is possible?
I can get the stylus to work as a mouse, but how can i assign keys to the direction pad on the wizard?
Does it use normal ascii codes?
Thanks
Nav>
I have just downloaded GFDOOM for my Wizard and it runs great. However the key layout is just not working for me. I have managed to find an ASCII sheet for virtual keyboards that lets me assign the keyboard keys to the functions that I would like however I would also like to give it a try with out using the keyboard as the key spacing is not too suited to gaming. I would like to assign the voice and camera keys to left and right strafe and the IE key to fire. The problem is that I dont know the key code for those keys.
An example of the keys:
Calendar = A
Contacts = B
Messages = C
IE = ??? (its not D)
The same goes for voice and camera, I dont know the key for those buttons. If someone knows the answer or knows if they have an ASCII character code, I would appreciate the help ending this headache.
I have only had a PPC for about two weeks now so Im very new at all of this. Please be gentle. I have attached GameFreaks readme for the key assignment along with the ASCII code list I found below, maybe you can make more out of it then I can.
I'm working on an application. This application has several fields which will only have numerical input (Zip code, phone number, part #, etc).
This application runs on Windows Mobile 5 & 6 with a touchscreen and full keyboard (So basically Treo's and HTC phones).
To type a number on these phones, you need to hold down a Function Key, then hit a letter which corresponds to a number. It has been requested to eliminate the need to hit that function key, and have it automatically input the number.
I cannot hard code this because it's certainly not very extensible (Well, I could hard code it, but whatever)
I was thinking I could P/Invoke "keybd_event" the Function key, and it should work from there.
However, I cannot find what key code the "Function" key is.
And also, will this key code be the same across all phones?
I suppose one last note, if you know a better way to achieve this without using P/Invoke, I'm up for new ideas
Thanks for your time,
Dan
I'm afraid I can't be of much help here, but you for sure *can't* get a Function key code. There isn't. It's deep in the keyboard driver.
However, according to this, there's some hook you can ask OS for to convert letters to numbers. But with MS, it might as well be hidden from public...
There has to be some message that's sent to the OS when I hit the Function Key, I just (obviously) don't have Spy++ on my PPC.
I was looking up a few things.
Is there anything relevant contained in keybddr.dll?
Hello,
I'm trying to get a usb keyboard working properly and I'm hoping someone can give me some help.
I used the getevent command to find the scan codes for all the keys on my keyboard and updated the qwerty.kl file accordingly
however, there's a few keys that I would like that I don't know what to do with in the qwerty.kcm file, eg. caps lock, esc
for letters, numbers, and punctuation it's very straight forward but for things like space, enter and tab, there are hex codes - 0x20, 0xa, 0x9 respectively
does anyone know where these numbers are coming from and if there are any for caps lock and escape?
EDIT: like 3 seconds after posting this I realized that those are just the ascii values of the characters..
that should have been extremely obviously
I should be able to get the escape key to work now
not sure what to do about caps lock though..
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.