The HTC Touch Diamond accelerometer... wide open |
![]() ![]() |
The HTC Touch Diamond accelerometer... wide open |
|
Jul 9 2008, 14:07
Post
#1
|
||
![]() The Main Man! Group: Admin Team Posts: 21,816 Favorited Topics: 51 Joined: 6th November 2002 From: Norwich, UK Member No.: 1 Device(s): Touch HD / G1 Twitter: @paulatmodaco |
Looking to implement support for the HTC Diamond accelerator in your native or managed applications? Now you can!
The breakthrough is thanks to Scott Seligman at ScottAndMichelle.net... QUOTE I spent a couple of sleepless hours last night writing a little Sensor Test for my new HTC Diamond. It's a small app that lets you move a circle around the screen by tilting the device. Exciting, eh? Well, the fun is in getting it to work. I asked HTC if they provide a development kit (SDK) for the tilt sensor, and they said "No", so I had to figure it out myself by digging around (and trying to remember what I knew of ARM assembly). I'm just happy I managed to figure it out, and so others can write interesting games with it, I'm giving the source code to what I figured out away. Have fun, create something with it. You can download Sensor Test here, it's the small app I describe, along with the project necessary to compile it. You'll need Visual Studio 2008 and the WM 6.0 SDK to compile it yourself, though if you're a Windows Mobile developer, I suspect you'll only need to see the top of the main code file and the first couple of functions to figure things out. I'm going to work on a little game idea I have, but with the way I bounce from one project to the next, don't be surprised if it takes me a while. ... I've added some code to show how to get notifications in an event-driven model from the tilt-sensor on the diamond to my Sensor Test project. The amount of information you can get out of this is very limited, only the current side of the device that's "up", but it's useful for some apps. For instance, this is what Opera uses on the device to sense when it needs rotation without reverting to polling the tilt sensor a few times a second If you're a native developer, Scott's page is probably the place you want to start to implement accelerometer support in your own application. If - like me - you are a developer in nice fluffy managed code land then do not despair, Koushik Dutta has created a managed wrapper for Scott's work! The wrapper exposes some very intuitive methods, as well as an event driven framework for when the device's orientation changes... SWEET! You can find Koushik's work here. I'm definitely looking forward to seeing cool applications hitting the streets using these libraries, and i'm definitely trying to think how to support into my own projects! P [Via: wmpoweruser] -------------------- My current devices of choice - HTC Touch HD (Miri 6.5 v11), White T-Mobile G1 (Haykuro ADP1.5Hr3-A2SD), Samsung Blackjack II (6.1 stock) ![]() |
||
|
|
|||
|
Jul 9 2008, 16:34
Post
#2
|
||
|
Regular Group: Posters Posts: 99 Joined: 7th July 2008 Member No.: 405,142 Device(s): M3100 |
I wanted to start coding for WM in my spare time. This looks like something to remember
|
||
|
|
|||
|
Jul 9 2008, 18:38
Post
#3
|
||
|
Enthusiast Group: Posters Posts: 196 Joined: 15th April 2008 From: Bristol! Member No.: 378,942 Device(s): HTC Prophet, HTC Diamond |
I sent an email to HTC about the SDK, they haven't replied yet (I sent it over a week ago), but someone has made progress!
Now to try and add this to FSD, my only real program... -------------------- |
||
|
|
|||
Nov 17 2008, 03:03
Post
#4
|
|||
|
Newbie Group: Posters Posts: 5 Joined: 7th March 2008 Member No.: 364,949 Device(s): SPRINT Mogul (Titan) |
I wrote this software which uses the HTC diamond's accelerometer and light sensor. Check this out : http://nishantpant.wordpress.com/2008/11/1...-touch-diamond/
Looking to implement support for the HTC Diamond accelerator in your native or managed applications? Now you can!
The breakthrough is thanks to Scott Seligman at ScottAndMichelle.net... If you're a native developer, Scott's page is probably the place you want to start to implement accelerometer support in your own application. If - like me - you are a developer in nice fluffy managed code land then do not despair, Koushik Dutta has created a managed wrapper for Scott's work! The wrapper exposes some very intuitive methods, as well as an event driven framework for when the device's orientation changes... SWEET! You can find Koushik's work here. I'm definitely looking forward to seeing cool applications hitting the streets using these libraries, and i'm definitely trying to think how to support into my own projects! P [Via: wmpoweruser] |
||
|
|
|||
![]() ![]() |
Similar Topics
| Topic | Replies | Topic Starter | Views | Last Action | |
|---|---|---|---|---|---|
![]() |
Quiet Speaker is a thing of the past. | 23 | Chad B. | 10,060 | Yesterday, 19:48 Last post by: kaben |
![]() |
|
74 | Paul | 59,111 | Yesterday, 10:15 Last post by: Paul |
![]() |
Pinned: User tutorials and feedbacks on attaching new screen on your Omnia |
454 | lantony | 50,953 | Yesterday, 11:59 Last post by: steff195 |
![]() |
When will the Omnia have the universal charge connector? | 6 | Laoyumi | 196 | Today, 08:27 Last post by: Adrynalyne |
![]() |
HTC Snap & Blackberry Connect Query into the HTC Snap being able to run Blackberry Connect |
0 | Atrum-Amicus | 28 | Yesterday, 11:25 Last post by: Atrum-Amicus |
![]() |
HTC Task Manager + SPB Mobile SHell 3 A Idea ? |
0 | Billou | 102 | Yesterday, 18:37 Last post by: Billou |
|
Lo-Fi Version | Time is now: 4th July 2009 - 09:37 |
Please visit our 'Plus Partners' - these companies support MoDaCo through 'MoDaCo Plus' - Click Here for more details!
ActiveKitten |
Aiko Solutions |
Ateksoft |
Binaryfish |
Conduits |
DeveloperOne |
eSoft Interactive |
FTouchSL |
Inesoft |
Lingvosoft |
monocube |
Mykesoft |
OmegaOne |
Omnisoft |
Opera Software |
Resco |
SBSH |
Slipstream Solutions |
SPB Software House |
Splashdata |
Sprite Software |
Syncdata |
Teksoft |
VITO |
WalkingHotSpot |
WebIS |
z4soft
Would your company like to become a 'Plus Partner'? Click Here to contact us!