• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[APP] DredSensor - Allow you to disable 'Home' and 'Back' keys while playing games

Search This thread

Dredger97

Senior Member
Oct 5, 2008
91
0
=======================================================================
New version 1.2 available here
=======================================================================


=======================================================================
Reviewed on gadgetmix.com: See the article
=======================================================================

If you have tried to play a game needing left and right key on an HTC Touch Diamond, you noticed that they are 2mm wide and if you click next to it, you get back to home page or to dialing menu etc...

So I've written a prog allowing you to lock these 4 keys actions and replace it by classical key event (VK_LEFT, VK_RIGHT, ...).
In that way you can play tetris, and use "Pick-Up" and "Hang-Up" keys for going left and right.

Link ->: DredSensor

To use it, you need:
1) An HTC Touch Diamond (it's the only one i have so i can't test it on other models)
2) Install the .cab
3) Reboot your HTC
4) Run a game (or app or ...)
5) Get your stylus out and back-in, in less than 1 second :)
6) Click "Yes"

----- A config window opens:

7) Check that Type = "HardKeySimul"
8) Click "Ok"


Now you can use (and eventually assign) your 'Home', 'Back', 'Pick-Up' and 'Hang-Up' keys in that game/app.
Actually, the 'Pick-Up' and 'Hang-Up' keys are always defined as Left and Right events.


Have fun.


Ps:

For people interested, the other "Type" in the config window are:
- "Launcher": allow you to quicklaunch 4 app (that you define in the config wnd) when you double tap (not click, just tap) on one of those 4 keyz
- "Scroll": allow you to scroll the current window by tapping those 4 keyz panel
- "KeySimul": allow you to send left/right/up/down events by tapping those 4 keyz panel
 
Last edited:

palmbluetooth

Senior Member
Feb 27, 2006
148
6
Sounds Great, will give a try....
If you can make this buttons to be assinged to other apps the whole time you'll be a hero :)
 

Dredger97

Senior Member
Oct 5, 2008
91
0
Sounds Great, will give a try....
If you can make this buttons to be assinged to other apps the whole time you'll be a hero :)

In fact if you launch /Program Files/DredSensor/DredSensorCfg.exe, you can edit the "Default" config that applies every time no other config matches...

So if you set the Default config in "Launcher" mode, you can quicklaunch app from everywhere...

Actually, the Launcher mode works with "double tap" rather than click. But i can update it quite easyly to make it work on click if you want.
 

stpete111

Senior Member
Jun 30, 2005
640
0
Dredger, can't wait to try this. This is my biggest gripe when playing games, and I didn't even think to post on here to see if someone could come up with something. I'll test today and let you know how it works!
 

palmbluetooth

Senior Member
Feb 27, 2006
148
6
Very Nice App, really works well.
The only thing is that I don't know how to add 'start', 'ok', answer and hang up to the buttons, do you have any suggestions?

Thanks, I'm loving it.
 

aBE-One

Senior Member
Sep 6, 2008
93
0
A very nice and welcome idea. Unfortunately, it doesn't work with my Raphael. Tried it with Kevtris: succesfully installed, soft-reset, started the game, and configured DredSensor for the game, but when I push e.g. the phone up key, it still brings up the phone application. I didn't change any of the settings in the DredSensor config screen (I did check that "HardKeySimul" was selected).

Hope you can make it work for Raphael too, it is so annoying trying to play games with the d-pad, when you accidentally press the home/phone/etc. keys all the time.
 

pinele

Senior Member
Nov 16, 2005
161
22
51
www.hdblog.it
Work perfect on Diamond but... it doesn't work on Touch HD... (error.. Unable to load HTC API DLL)
 
Last edited:

Dredger97

Senior Member
Oct 5, 2008
91
0
A very nice and welcome idea. Unfortunately, it doesn't work with my Raphael. Tried it with Kevtris: succesfully installed, soft-reset, started the game, and configured DredSensor for the game, but when I push e.g. the phone up key, it still brings up the phone application. I didn't change any of the settings in the DredSensor config screen (I did check that "HardKeySimul" was selected).

Hope you can make it work for Raphael too, it is so annoying trying to play games with the d-pad, when you accidentally press the home/phone/etc. keys all the time.

Work perfect on Diamond but... it doesn't work on Touch HD... (error.. Unable to load HTC API DLL)

Sorry, i only have an HTC Diamond so unless you offer me ;) a Raphael or HD, it's quite hard for me to check anything.

For the touch HD, maybe you should download HTCAPI.DLL somewhere, put it in /Windows and try again.

For the Raphael, on the related article on gadgetmix.com (see 1st post for the link), it seems it works on HTC Touch Pro so it should work on yours.
 
Last edited:

Dredger97

Senior Member
Oct 5, 2008
91
0
Very Nice App, really works well.
The only thing is that I don't know how to add 'start', 'ok', answer and hang up to the buttons, do you have any suggestions?

Thanks, I'm loving it.

Sorry, i think i don't understand exactly what you would like to do...

Start, Ok etc are default functions on that buttons so you have nothing to do to get them doing that...
 

BenDick

Member
Nov 17, 2006
29
0
North Bay
www.iambendick.com
Thank You

Hey! This looks like a really good program idea. Its not all that simple to figure out. I'm also not too sure there is an alternative way to customize the program.

Once I had it figured out, it works really well. Kudos for the update. My Diamond is getting much more reading use now. I just found that the d-pad was pretty much useless until now.

Also kudos on the stylus idea. Pretty nifty way to activate the menu.

Two thumbs up. I'm looking forward to any updates in the future.
 

aBE-One

Senior Member
Sep 6, 2008
93
0
For the Raphael, on the related article on gadgetmix.com (see 1st post for the link), it seems it works on HTC Touch Pro so it should work on yours.

Well, maybe they're using another ROM or something. Are you sure they tested it with a Raphael? Maybe they just tested it with a Diamond and presumed it would work on a Raphael (I'm not familiar with the site, so I don't know what devices they're using).

Anyhow, after some more testing, it is actually partly working. That is, sometimes the phone/hang up buttons work as left/right, sometimes they don't. With the phone button it's about 50 % working, 50 % not (in Kevtris). For some reason the hang up button is working more frequently, something like 80 % working, 20 % not.

Also tried it with another game - Marble Worlds 2 demo - again only a part of the key presses are registered correctly.

I understand it's hard for you to test anything when you don't have a Raphael, but if I can do anything to help (apart from donating my Raphael to you ;)), just ask.
 

Dredger97

Senior Member
Oct 5, 2008
91
0
Well, maybe they're using another ROM or something. Are you sure they tested it with a Raphael? Maybe they just tested it with a Diamond and presumed it would work on a Raphael (I'm not familiar with the site, so I don't know what devices they're using).

Anyhow, after some more testing, it is actually partly working. That is, sometimes the phone/hang up buttons work as left/right, sometimes they don't. With the phone button it's about 50 % working, 50 % not (in Kevtris). For some reason the hang up button is working more frequently, something like 80 % working, 20 % not.

Also tried it with another game - Marble Worlds 2 demo - again only a part of the key presses are registered correctly.

I understand it's hard for you to test anything when you don't have a Raphael, but if I can do anything to help (apart from donating my Raphael to you ;)), just ask.

You probably run another program that uses the same sensor API and that conflict with DredSensor.
Don't you have G-Scroll or something similar installed?
 

Kloosek

Senior Member
A very nice and welcome idea. Unfortunately, it doesn't work with my Raphael. Tried it with Kevtris: succesfully installed, soft-reset, started the game, and configured DredSensor for the game, but when I push e.g. the phone up key, it still brings up the phone application. I didn't change any of the settings in the DredSensor config screen (I did check that "HardKeySimul" was selected).

Hope you can make it work for Raphael too, it is so annoying trying to play games with the d-pad, when you accidentally press the home/phone/etc. keys all the time.

On my Raphael program works perfectly. My ROM is PROven ROM 1.09 PLK.
 

g2tl

Senior Member
Nov 27, 2007
1,085
25
Boston
Not in that first version but as it seems people find it usefull, i'll probably update it to let you choose which key or app-launch you affect to each button.

When you do that, can you consider left and right softkeys? That'd be a significant advantage, as I find the lack of the two keys annoying in some apps (esp java ones).

On a side note, does the software poll for input? While I doubt it would affect the battery that much, I'll probably limit my usage to be on the safe side.

Great app!
 

Dredger97

Senior Member
Oct 5, 2008
91
0
When you do that, can you consider left and right softkeys? That'd be a significant advantage, as I find the lack of the two keys annoying in some apps (esp java ones).

On a side note, does the software poll for input? While I doubt it would affect the battery that much, I'll probably limit my usage to be on the safe side.

Great app!

So if I understand, you'd like the possibility to simul left or right softkey by clicking on 'Home' and 'Back' for example?

On the side note, it doesn't poll for input, but it polls every second to check which app is on the foreground. The input job is event based.
 

g2tl

Senior Member
Nov 27, 2007
1,085
25
Boston
So if I understand, you'd like the possibility to simul left or right softkey by clicking on 'Home' and 'Back' for example?
correct

On the side note, it doesn't poll for input, but it polls every second to check which app is on the foreground. The input job is event based.
Which I'm assuming is not happening when the screen is off (through power button)?