Key mapping program - General Questions and Answers

Hi.
Im making a little key mapping tool in .net using the SetWindowsHookEx metheod.
The purpose of the program is to enable old Ipaq games to work with modern phones with limited keys...
I've made some success with the program but have some issues
1) In the key hook delegate method i return 1 (one) which should make the keystroke not reach the game. For some games this works, the orginal keystroke does not reach the game and my custom simulated keystroke reaches the program instead. But for some games both the orginal keystroke AND my simulated keystroke reacheases the game resulting in unwanted behavior. (A little sidenote, the WM6 Emulator phonekeys works)
2) I can hook up both the answer and hangup button on my HTC Touch, but the simulated key is not triggered in the game. If i instead use volume up / down keys in the same game it works. If i debug i can see that the event is triggered for the telephone buttons but the keybd_event method (Part of the coredll.dll) failes to simulate the key.
3) Most games are configured for Ipaq games, but i havent found a specifcation over ipaq keycodes, anyone has one?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
In future versions i will support stylus simulation and Accelerometer event handling...

If you post in the correct section of the forum, you'll most likely get an answer there. This section of the forum is for contributing.
Here is where you should post.

Moved to Q&A

Im contributing by making this tool
Anyway, i still havent found the codes for ipaqs, they must somewhere?

Ah, i googled for key codes
But if i also google for hardware buttons i found them right away
Hardware1 = 193,
Hardware2 = 194,
Hardware3 = 195,
Hardware4 = 196,
Hardware5 = 197,
Now i can bring up the Items menu in Tomb Raider Pocket PC
However i still have poblems with 1) 2) above. I will post a beta here soon...

Related

Finger Mouse

Have any of you seen the Finger Mouse on the Samsung Epix? That thing is the shiz. You know how our Touch Pro's have that touch-sensitive center button right... does anyone think they can either rip and port the Epix driver over to the Pro or can a smart person write up an app that does the same? That would be Awsome!!!
Finger mouse as in.....
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
?
GaZ said:
Finger mouse as in.....
?
Click to expand...
Click to collapse
haha i lold
AFAIK mouse pointer in Pocket PC was first bought out by HTC in their P3300 Pocket PC a.k.a HTC Artemis. The mouse is controlled by a trackball which was initially bought out on Blackberry. Now Samsung Epix seems to have a mouse pointer on screen which can be controlled by a small touchpad something similar to the ones you have on laptops.
yes.
but raphael have a touch panel around the center button.
so, that place can be useful, to make a "mouse"
The whole area downthere is actually touchsensitive
Yeah, I know, it can mean at least 2 things but I mean that the whole area under the screen i touchsensitive and not only around the button.
haha. this is the third "idea" of this.
in my post i already looked into it, but because i am new to programming on Windows mobile and also in accessing the touchpad, i was not able to call it right.
The next problem was that the SDK provided by someone, the message of a touch is only called when the window is open and in front and the demo of this sdk shows that it is also only called when you touch and release your finger of the touchpad.
Maybe this are only restrictions of the SDK programming but it seems to be not possible for my little SDK, WM, NET programming skill.
I still hope someone will make this tool or will help by / fix this SDK.
some other idea already mentioned is to use the touchpad as alternative left/right/top/bottom keypad because it is not really handy on the Touch Diamond/Touch Pro.

[BUG] Hardware Buttons not changable

I have following Problem:
I would like to change the Hardwarebuttons of my Leo but in the "Keys" screen there are none -.-
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Also I have the Problem that it I cannot turn off the Windows Lock completely. I managed it to disable it when the device wakes up, but the lock activates when I turn off my phne with my HangOn button
you can use AEbutton plus
is working like a charm in leo
http://ae.inc.ru/aebplus.php
I wouldn't call it a bug. The buttons on the HD2 are already assigned to specific tasks already.
They wouldn't really want anyone assigning them to anything else. It's not like there are spare buttons (like on the X1) that aren't already assigned to specific functions.
So, like I said, not exactly worth calling a bug.
I cannot override the the hangOn button so the problem with the Windows Mobile Lock stays....
I've posted a reg for the send key in the hints and tips thread first page
no go
Looks like Aebutton and the reg key breaks existing button assignment.
I just installed AEBUttonPlus [because I had used it before on my HD - and I HATE not being able to scroll up/down a list of items WITHOUT triggering/opening one (EG spam email) ] - Stupid Windows/HTC AGAIN!
So I was trying to setup the HD2 the same way as I had it on my HD - that is;
'volume up HARDWARE button' has TWO functions = *one press = scroll up* : *Long press = Volume up* (same design for down of course)
But....I think I've possibly become less intelligent over the past year or something because I cant figure out how to do it in AEButtonPlus (and the website isn't much help) The prog itself isn't very intuitive, that much I do recall, but somehow I did manage it last year, to sort the HD - but can't replicate it now
If anyone knows what I mean and can help I'd be very much obliged - thanks!

[Q] [touch pro] How to test htc buttons ?

Hi, i just have some problem with focusing camera by tuching dpad,
its describe here: showthread.php?t=435061&page=5
... but i was wondering - maybe there is some software to test all of the buttons in my htc touch pro - it will be quite nice to test it.
Do a search for raphdiag.nbh. It's a diagnosis image that has a test for the buttons (among other things). You need hard spl to run it, and you need to know how to flash off your sd card. It won't over-write the rom (just don't format the nand).
its sound a litle bit complicated - i just dont wont to lose my warranty -
maybe some instaled software (.cab)
Oh, come on, sack up and flash you phone, lol. Why are you worried about your warranty? It's got to be long dead by now.
You can try this tool; it measures input to the d-pad (mostly capacitative responses). It may help with the camera button. You're not using ae button, are you? It's a bad idea to re-map that button.
no, im not usung ae button
how to run this navdbgtool.exe ?
----------------------------
ok - it can be run by download htc test.zip
is it normal that i dont have full circle - its look strange - example below
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Just run it from the device, and click on it. I didn't include a shortcut, but you can send one to the start menu.
i've just edited my previus post - could you tell me is it wrong that i dont have full circle
im new user so i just cant post images and links - just copy-paste this address to see what i have in NavDbgTool img716.imageshack.us/img716/6064/htctouchpronavdbgtool.jpg
my center d-pad is working - but not with camera
this is another img with efects of using navDbgTool:
---
img525.imageshack.us/i/dpadnavdbgtoolcalibrati.jpg/
---
its not a full circle around dpad - its something wrong (some bad callibration)
or its just alright
maybe everyone has the same

[Q] Remapping BT Headset Buttons (Change Call Button function)

I recently bought a Nokia BH-503 Bluetooth headset, and it has 4 buttons, 3 for media, that work flawlessly, and a Call button. Here's an image:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Since the Xoom doesn't have phone functions, this button is unusable for me, so I thought about remapping it, but couldn't find any app that could do it. Most apps would work with headsets with 3 buttons.
If possible, I want to remap it for voice commands/action, I'm not sure what is supported on the Xoom (I had some problems with one of my tests, saying Voice Commands are unsupported), so, anything that I could touch the button, speak a function, and receive it by sound.
I searched and couldn't find, in fact, when searching for headsets and Android, usually I would find that calls works, and media not.
Xoom Wifi - Stock ICS 4.0.3 - Rooted
//////////////////////////////////////////////////
My tries [None worked]
//////////////////////////////////////////////////
I tried Headset Button ControllerTrial, but not only the Debug mode didn't work, there were no options related to a "fourth button".
I also tried Button Remapper, and it found the buttons, but...
It shows me the buttons (If I disconnect the headset, it crashes, so I believe they are all from it) (I don't know shy it won't show the 3 hardware buttons...), but there are buttons that just don't exist.
I tried changing the only button not directly specified on the phone controls, the Stop button, to Search, but nothing changed and the buttons are doing the exact same thing.
Thoughts
I have started researching this subject but have made little progress.
I believe how the remapping software you are using just modifies the Keyboard layout files in order to remap the functions (just an assumption). I tried doing this myself and it failed.
I think the reason is because bluetooth commands are handled separately from the keylayout mapping. It is built into the android system itself so it needs a custom program to intercept the command and set another function.
For reference, I would suggest you read this: stackoverflow.()com/questions/6287116/android-registering-a-headset-button-click-with-broadcastreceiver
The only solution I can come up with is writing a custom app. It is doable, but will take some time.

Dead Trigger with Tegra 3 details on Sensation

I searched for a thread like this for sensation but couldn't find one so I thought I would start one.
You can enable the advanced tegra3 effects like ragdoll and improved lighting and water shaders by editing an XML file stored in your system partition. You will need root to be able to do this.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
The original thread is here: http://forum.xda-developers.com/showpost.php?p=28264365&postcount=54
Make sure you set permissions correctly as I lost some progress by doing it wrong. They should be:
Read Write Exec
X - - User
X - - Group
X - - Other
If you set these wrong then it will either not work or you could lose all your progress. It is a good idea to backup your progress before editing the file by copying it to your sdcard.
This game is great fun, especially if you have a spare PS3 pad lying around and can pair it to your phone. Set the input settings in android settings so its recognised as a standard gamepad for it to work in this game. You will have to set the buttons in dead triggers settings. Unfortunately the pad doesn't work for menus but works great for playing!
Our sensations seem more than capable of ultra settings. I average just over 30 fps most of the time.
Enjoy!
We could also use this thread to share in game names to add to our friends lists. Mine is Ferocious.
lol they say those graphics could ONLY be done on tegra 3...while it's working perfect on our Adreno....the levels the lies can reach to make you buy a new product is beyond...way beyond.
would like to inform that this works, shame on Nvidia.
Awesome mate! 5 stars to you! Thank you for bringing this to our attention!
No worries guys. Glad to be of some help.
Is it just me or is the only level with water on the floor the very first one? I'm up to level 12 now (getting radio stuff) and have not seen another one with it in.
Ragdolls are fun!

Categories

Resources