FORUMS
Remove All Ads from XDA

[APP] {WIP} Virtual D-Pad - (Updated 15/12/09)

200 posts
Thanks Meter: 1
 
By Tirinoarim, Senior Member on 31st December 2008, 11:46 AM
Post Reply Email Thread
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 - [Click for QR Code] (4.5 KB, 6241 views)
File Type: txt Config.xsd.txt - [Click for QR Code] (10.2 KB, 4677 views)
File Type: zip GPad.zip - [Click for QR Code] (19.9 KB, 4631 views)
File Type: txt GPad Full Config.txt - [Click for QR Code] (3.1 KB, 2232 views)
 
 
31st December 2008, 12:42 PM |#2  
Senior Member
Flag Honeoye Falls, NY
Thanks Meter: 0
 
More
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
31st December 2008, 03:43 PM |#3  
Senior Member
Flag Honeoye Falls, NY
Thanks Meter: 0
 
More
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
31st December 2008, 04:52 PM |#4  
Senior Member
Thanks Meter: 1
 
More
how do you install this??
31st December 2008, 05:00 PM |#5  
Junior Member
Flag Brussels
Thanks Meter: 1
 
More
Excellent !!
exactly what I was looking for, great job!

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

thanks !
31st December 2008, 05:01 PM |#6  
Senior Member
Flag Honeoye Falls, NY
Thanks Meter: 0
 
More
Quote:
Originally Posted by patterns

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
31st December 2008, 05:12 PM |#7  
Junior Member
Thanks Meter: 0
 
More
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.
31st December 2008, 06:51 PM |#8  
Tirinoarim's Avatar
OP Senior Member
Flag Huddersfield
Thanks Meter: 1
 
More
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
31st December 2008, 07:05 PM |#9  
Senior Member
Thanks Meter: 8
 
Donate to Me
More
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 .
31st December 2008, 07:23 PM |#10  
Senior Member
Thanks Meter: 29
 
More
Quote:
Originally Posted by johnpatcher

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!
31st December 2008, 08:23 PM |#11  
Senior Member
Thanks Meter: 0
 
More
1.)How is this virtual d-pad different of GController ?
2.) Can you move the map in Age of Empires 1,25 with this ? :)
Post Reply Subscribe to Thread

Tags
blackstone, dpad, gpad, virtual pad

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes