Go Back   xda-developers > HTC Diamond: Touch Diamond, MDA Compact IV > Touch Diamond, MDA Compact IV Themes and Apps


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 3rd February 2009, 09:47 PM
Dredger97 Dredger97 is offline
Member
 
Join Date: Oct 2008
Posts: 88
Default [APP][Updt 08/09/2009] DredSensor v1.3a - Allow you to personalize Hard Key Actions

================================================== =====================================
DredSensor v1.3a:
================================================== =====================================

Now DredSensor should be compatible with other device than HTC Touch Diamond.

Historically, 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.

I extended it to let you configure each app independantly, and choose between four (five) mode:
  • "HardKeySimul": replace the 4 keyz by classical key event
  • "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
  • "--- Disabled ---": Disable specific HTC Touch Diamond Sensor functionalities.

Now, i've added an alternative Key Mapping, that let you map an action (or another key) on normal click and long click event on any other key that the up-described four.
So if you don't have an HTC Touch Diamond, the only mode you can choose is "--- Disabled ---" but you can define "other key mapping".


Link ->: DredSensor-v1.3a

To use it, you need:
1) A Windows Mobile SmartPhone
2) Install the .cab
3) Reboot your SmartPhone
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) Choose the Type you want.
8) Reassign the actions to the events, if needed.
9) Assign "other key mapping", if needed.
10) Click "Ok"

Other Key Mapping:
To add a key mapping, a popup opens and ask you to press a key.
If you want to assign an action to normal clic, just clic on the choosen key.
If you want to assign an action to long clic, clic more thant 1 sec on the choosen key.
Then you have to choose the action, and it's done.

If you only assign an action to a long clic on a key, a short clic on this key should work transparently.


Have fun.

================================================== =====================================
If you like this program, feel free to donate:


================================================== =====================================


================================================== ========================================
Version history:
================================================== ========================================

New features in v1.3a:
=====================
  • Added an alternative key mapping that Should be compatible with any Windows Mobile device.
  • Added the "KeepAlive" option. Check this if you want DredSensor to prevent the smartphone to sleep when this application is loaded.
  • Added possibility to Enable/Disable DredSensor:
    Exemple of C++ code to do this:

    #define WM_DREDSENSOR_START WM_USER+22
    #define WM_DREDSENSOR_STOP WM_USER+23

    Disable:
    HWND m_hDredSensorWnd=FindWindow(_T("DredSensorWnd"),NU LL);
    if(m_hDredSensorWnd!=NULL)
    SendMessage(m_hDredSensorWnd,WM_DREDSENSOR_STOP,0, 0);

    Enable:
    if(m_hDredSensorWnd!=NULL)
    SendMessage(m_hDredSensorWnd,WM_DREDSENSOR_START,0 ,0);


New features in v1.2g:
=====================
  • Fixes a few bugs
  • Fix the bug in config window when loading prog list
  • Added a debug mode:
    ================
    For activating it, just launch DredSensorDebug.exe (in /Program Files/DredSensor).
    First it will tell you if DredSensor is running or not.
    If it's running, it will activate/deactivate the debug mode so you will find a log in /Program Files/DredSensor/Log

    If you have trouble with DredSensor:
    • Restart your HTC
    • Launch DredSensorDebug (to activate log)
    • Wait for DredSensor to stop working
    • Launch DredSensorDebug to know if it's still runing or not.
    • PM me the log, the config.ini and a description of the problem.

New features in v1.2b:
=====================
  • Tried to fix the conflicts with TouchLockPro and similar, hope it works (thanks for those who can check this out)

New features in v1.2:
=====================
  • Fix "not working bug" with new ROMs
  • Allow you to choose wether you block the scrolling wheel or not
  • Allow you to disable the vibrator effect.
  • Allow you to delete configs.

Tips:
=====
  • If you upgrade to this version, you can keep your config file.
  • To define a profile that applies on every applications, launch config tool and edit "Default" config.
  • If the key you want to affect is not listed, you can define it manually:

================================================== =====================================
DredSensor v1.1d:
================================================== =====================================

Link ->: DredSensor-v1.1d

New features in v1.1d:
=====================
  • Let you choose which Key/Action you affect to each key.
  • Launcher Mode let you affect an Action for:
    • Double Tap event
    • Click event
    • Long click event
  • An icon for config tool is created in Program list.
  • Cache Program List for quick loading in Config window.
  • Fixes a few bug from v1.1, v1.1b and v1.1c

Tips:
=====
  • If you upgrade to this version, your config file will be cleared (sorry ).
  • To define a profile that applies on every applications, launch config tool and edit "Default" config.
  • If the key you want to affect is not listed, you can define it manually:

Last edited by Dredger97; 8th September 2009 at 01:30 PM..
Reply With Quote
Sponsored Links

  #2  
Old 4th February 2009, 01:34 AM
whis whis is offline
Junior Member
 
Join Date: Sep 2008
Posts: 16
Default

Wonderfull!!
the app is working good for me now! I just love the scrolling with only a touch on the d-pad
Thank you!!
Reply With Quote

  #3  
Old 4th February 2009, 05:08 AM
Kraize Kraize is offline
Senior Member
 
Join Date: Dec 2007
Location: California
Posts: 2,283
Default

I suggest you stop making a new thread for every new version and instead update your original thread and post that you've updated it.
__________________


DEVICE: HTC Touch HD
ROM: Shadow|Line (Unreleased)
UI: TF3D2!

Donate to me

Uncalled for Quotes!:
Quote:
1. <zeezee> i dont eat alchol very often <--buzzed! lol
2. <zeezee> no mr.iwishmewasdisgustinggay <-- buzzed
3. <JDShadowline> godsonofabitchpieceofshitpainintheassbullshitomgwt fbbqroflcopter wm6.5 and htc modules can kiss my ass! <-- pissed at cooking! rofl
4. Happy?!? It's changed?! Calm your nuts now zz.
Reply With Quote

  #4  
Old 4th February 2009, 08:51 AM
Krzysiec's Avatar
Krzysiec Krzysiec is offline
Senior Member
 
Join Date: Aug 2008
Location: Rzeszów
Posts: 1,115
Default

After installing and lunch program .... i cannot see any of EVENTS on Events tab. Windows "wait gif" is rolling all the time and nothing happen :/ (i talk about mapping under HardKeySimul
__________________
Device: HTC Touch Diamond ROM: Dark Innovation 2 PLK by Me

Device: HTC Magic ROM: Magic GyD 2.1.1 + BLack-Eclair v1.4 Theme by kosworld <<< BEST ROM EVER
Reply With Quote

  #5  
Old 4th February 2009, 11:02 AM
Dredger97 Dredger97 is offline
Member
 
Join Date: Oct 2008
Posts: 88
Default

Quote:
Originally Posted by Kraize View Post
I suggest you stop making a new thread for every new version and instead update your original thread and post that you've updated it.
That's what i wanted to do but i didn't found a way to update the post title...
Is there one?
Reply With Quote

  #6  
Old 4th February 2009, 11:03 AM
torpie13's Avatar
torpie13 torpie13 is offline
Senior Member
 
Join Date: Apr 2007
Location: Paris
Posts: 177
Default

thanx for the update I'll try it and report
__________________
HTC Trinity - SOLD
HTC Polaris - SOLD

HTC Raphael
Rom: EnergyROM 2.0 26-03-09
Radio: 1.12.25.19 Raphael
Reply With Quote

  #7  
Old 4th February 2009, 02:48 PM
antlane antlane is offline
Member
 
Join Date: Dec 2005
Posts: 51
Default

Thanks for the new version! And thanks for adding the OK button command!

Seems to be working better than the last version although pressing the back key (which I have mapped to click right) a few times in quick succession does seem to send a back command. Pressing the home key in quick succession doesn't have this problem.

Also, I can't get the scroll wheel to work despite leaving the "Block scrolling wheel" box unchecked. Am I doing something wrong?
Reply With Quote

  #8  
Old 4th February 2009, 03:38 PM
Dredger97 Dredger97 is offline
Member
 
Join Date: Oct 2008
Posts: 88
Wink

Quote:
Originally Posted by antlane View Post
Thanks for the new version! And thanks for adding the OK button command!

Seems to be working better than the last version although pressing the back key (which I have mapped to click right) a few times in quick succession does seem to send a back command. Pressing the home key in quick succession doesn't have this problem.

Also, I can't get the scroll wheel to work despite leaving the "Block scrolling wheel" box unchecked. Am I doing something wrong?
Hmm.. For the scrolling wheel, i use a tricky solution that works on my HTC touch diamond. May be it doesn't work on your model or on your rom version...

If someone have an idea on how to send a "ZoomIn" or "ZoomOut" event to a window (or how to develop an application that catch ZoomIn and ZoomOut events), that would help a lot...

As far as i studied the problem, it seems that ZoomIn and ZoomOut events are equal to Up and Down keys, but comming from a "rocker" .. so I can send those Up/Down key events, but no idea of how to tell that this comes from a "rocker" (and i don't even have an idea of what a "rocker" is...)

Help?
Reply With Quote

  #9  
Old 4th February 2009, 11:46 PM
ldrn ldrn is offline
Member
 
Join Date: Apr 2007
Posts: 30
Default

Wow, this is great! I am still loving the ability to remap my home key (and the others), and I really like the new scroll wheel feature. Actually, for me, instead of zooming in some apps, it now seems to scroll just about everywhere -- which is perfect, I like that more anyway.

Is there any way to donate or buy you a cup of coffee? I'd like to as a thank-you.
Reply With Quote

  #10  
Old 5th February 2009, 11:31 AM
Slide's Avatar
Slide Slide is offline
Senior Member
 
Join Date: Nov 2004
Location: Esslingen
Posts: 100
Default

What an absolutely brilliant program!

Thank you very much Dredger97!

Greeting
Slide
__________________
HTC Touch HD2
Sony Ericsson MBW-150
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:36 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.