Go Back   xda-developers > HTC Blackstone: Touch HD > Touch HD Themes and Apps


Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 31st December 2008, 12:46 PM
Tirinoarim Tirinoarim is offline
Senior Member
 
Join Date: Oct 2007
Posts: 144
Default [APP] {WIP} Virtual D-Pad - (Updated 15/12/09)

Run this app in the background to use the G-Sensor as a DPad. Seems to work with cursor (in word etc) and, start menu, list boxes etc.

Comments/feedback appreciated (but please remember it is a work in progress!)

Version History

Added sample full config with descriptions
Added <VK_DPAD> option in config xml to increase compatibility.

Version 0.9:-
Bug fix to tilt logic
Added more override options for individual applications (e.g. MaxX/Y, DeadZoneX/Y)
Uploaded XSD for config file (contains some documentation)

Version 0.8:-
Added hardware key toggle to config file

Version 0.7:-
Moved all settings into config file
Improved UI
New "Switch" mode added
New "KeySend" methods added (SendMessage & KeybdEvent)

Version 0.6:-
Minor bug fix

Version 0.5:-
New config file format, to support...
Acceleration mode!

Version 0.4:-
Better matching of exe names (oops!)

Version 0.3:-
Allowed list now works from exe name (rather than window title)

Version 0.2:-
Config file
Proportional directions
Non-flat center/neutral point (config - CenterX/CenterY)
"Dead Zone" (config - Threshold)
Restriction by program (config - Application)

Have a play and let me know your thoughts.
Attached Files
File Type: txt GPad Config.txt (4.5 KB, 4510 views)
File Type: txt Config.xsd.txt (10.2 KB, 3433 views)
File Type: zip GPad.zip (19.9 KB, 1105 views)
File Type: txt GPad Full Config.txt (3.1 KB, 498 views)
__________________
Rich

Phone
Touch HD
Energy Rom 2.5

My Stuff
GPad - Virtual D-Pad
iGO8 HD Skins

Feel free to Donate!

Last edited by Tirinoarim; 15th December 2009 at 01:46 PM.. Reason: Full config sample
Reply With Quote
Sponsored Links

  #2  
Old 31st December 2008, 01:42 PM
abeery abeery is offline
Senior Member
 
Join Date: Jun 2007
Location: Honeoye Falls, NY
Posts: 135
Default

I'll give her a look see --- not happy with the virtual SIP solution I've been trying to code. I was wondering if I could detect a hardware key (like the back arrow) and then use the g_sensor for scrolling if and only if that button was being held. That way apps aready using the g-sensor could continue to use it and users could have greater control over what was scrolled and when. Since you already have taken this this far I throw the idea your way to run with it if you want to... if not that is fine too.

Blessings my friend in the new year!

PS-If you want to collaborate in coding send me a PM
Reply With Quote

  #3  
Old 31st December 2008, 04:43 PM
abeery abeery is offline
Senior Member
 
Join Date: Jun 2007
Location: Honeoye Falls, NY
Posts: 135
Default

Seems to work as intended... The single-hardware button "hold to enable - release to disable" would make this a real solution... Are use using Dutta's Unified Sensor API "My Brain Hurts website"?

Good work so far
Reply With Quote

  #4  
Old 31st December 2008, 05:52 PM
patterns patterns is offline
Senior Member
 
Join Date: Sep 2007
Posts: 339
Default

how do you install this??
Reply With Quote

  #5  
Old 31st December 2008, 06:00 PM
geower geower is offline
Junior Member
 
Join Date: Jan 2008
Location: Brussels
Posts: 12
Default Excellent !!

exactly what I was looking for, great job!

I'll test it in some games unusable without d-pad and report.

thanks !
Reply With Quote

  #6  
Old 31st December 2008, 06:01 PM
abeery abeery is offline
Senior Member
 
Join Date: Jun 2007
Location: Honeoye Falls, NY
Posts: 135
Default

Quote:
Originally Posted by patterns View Post
how do you install this??
I copied the files to my SD card and ran the exe... switching to another application then uses g-sensor as directional arrows... stopping EXE kills behavior... at least that's what worked for me
Reply With Quote

  #7  
Old 31st December 2008, 06:12 PM
tomasn tomasn is offline
Junior Member
 
Join Date: Oct 2007
Posts: 21
Default

I tried it out and this seems promising. Below are some things I would like to see added to make this truly useful.

1. You do not want to have it active all the time so you need an easy ability to activate/deactivate it as already stated above. Either by pressing and holding a hardware button or by pressing and holding a certain area/corner of the screen.

2. When I hold the phone in my hand the neutral position is almost never the completely flat position. I think the position of the phone when you activate it according to 1. above should be taken as the neutral position. Any relative movements from that position should then be interpreted as left,right,up and down.

3. Make the speed of the scrolling configarable.

4. Make the speed of the scrolling proportional to the movement from the neutral position. If I move only slightly from the neutral position it should scroll slowly and if I move it a lot it should scroll faster.

5. A per application filter would also be really useful. For each application you should be able to specify ig G-Pad is active always, never or when activated according to 1. above. The default for unlisted applications should be to activate it according to 1. above.


Don't hesitate to ask if you have any questions regarding my suggestions. I don't think any of them should be really hard to implement.

Keep up the good work. I look forward to the next version of this.

Last edited by tomasn; 31st December 2008 at 06:17 PM..
Reply With Quote

  #8  
Old 31st December 2008, 07:51 PM
Tirinoarim Tirinoarim is offline
Senior Member
 
Join Date: Oct 2007
Posts: 144
Default

Wow, so many responses! Like I said initially, its a work in progress. On the "ToDo" list is :-
1. Config File!
* Threshold setting (how much to tilt before registering
* Center (i.e. what angle is neutral instead of flat)
* Application list
2. Proportional control

I'll add the other suggestions to my list.

Cheers
__________________
Rich

Phone
Touch HD
Energy Rom 2.5

My Stuff
GPad - Virtual D-Pad
iGO8 HD Skins

Feel free to Donate!
Reply With Quote

  #9  
Old 31st December 2008, 08:05 PM
johnpatcher johnpatcher is offline
Senior Member
 
Join Date: Jan 2008
Posts: 888
Default

Great work! The most wanted for me is the possibility to map it to a button, so by pressing the button your program is enabled, by pressing it once again, it is disabled again.

Another idea would be that it is just enabled while you are pressing the button, whereas it is disabled when you are not pressing the specified button.

But its up to you .
Reply With Quote

  #10  
Old 31st December 2008, 08:23 PM
rhtizzy rhtizzy is offline
Senior Member
 
Join Date: Apr 2008
Location: Bussum
Posts: 124
Default

Quote:
Originally Posted by johnpatcher View Post
Another idea would be that it is just enabled while you are pressing the button, whereas it is disabled when you are not pressing the specified button.
This makes the most sense to me, browsing lists for instance would be so much more practical.

Keep up the excellent efforts!
Reply With Quote

Reply

Tags
blackstone, dpad, gpad, virtual pad

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:09 PM.


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