[Windows Mobile Apps and Games] shirreer:
Credits:

Foremost, let us all acknowledge Koushik for his brilliant "Sensors" library upon which most if not all non-HTC apps that use the G-Sensor, Light-Sensor, and Navi-Sensor are built, simply ingenious. Moreover, I would like to recognize No2chem for the NeuLed2 library which is an equally exquisite peace of code that allows access to the Diamond/Pro Leds. Without those two guys, accessing these advance interfaces on the diamond/pro would be inapproachable at best.

Reason: HTC gave these phones lots of sensors, lets give them.."Sense".

......... EXTRA-Sense ...........

* Hopefully, an innovaton & integration of RANDOM but needful features...

Features:

1. Courtesy Settings:

- Select Volume Profiles to activate on Face-Down & Face-UP events. Choose from: None, Silent, Normal, and Vibrate. You can also choose to suspend the Phone when its facing down (duh!).

2. Notifications-Sense:

- IF there is/are any outstanding notification(s), the device will vibrate whenever you move it at customizable intervals: Missed Call(s), Voice Mail, and SMS only.

3. Stylus-Sense:- When the Stylus is in/out: Will play faint sound + Blink the Back button's light +/Vibrate. Moreover, the device will vibrate whenever you move it at customizable intervals.

- When the Stylus is out and the device is moved: Device will vibrate twice on every posture change + blink the Back button's light to REMIND you that the Stylus has not been placed back in. This goes ON until the Stylus is placed where it should be.

* Uses "in.wav" & "out.wav" files in the \XSense\ Dir; you can use whatever wave files for this. OR, use the UI to select whichever wave files you want!

4. General Settings:

- Polling Interval: From 200 to 3000 Miliseconds. This determines the rate at which the G-Sensor is polled. Lower values give higher response times and fluid operation at the cost of battery life & CPU utilization.

- Flash Navi Lights: Will blink button lights to notify you of Profile changes and Stylus In/Out.

- Vibrate on Events: Will induce very subtle vibrations to notify you of Notifications and Profile changes.

- Suspend when UP-Side-Down: Your phone will suspend if you hold it up-side-down (duh!)

- Light Navi Button When Suspended: Will do just that. This is an independent setting that turns ON the Navi button's light at suspend time, and OFF at Resume time (this is Event Driven, so no polling is involved). This feature really helps if, like me, you want to see where the damn thing is in the dark - before you launch it against the floor.

6. Installs to "\Program Files\XSense", and Creates 2 shortcuts:

"Start Menu\Programs\XSense" and "Startup\XSenseSvc".

Program Settings are saved to the Registry at "HKCU\Software\XSense\".

Use of System Resources:

1. Diskspace: 162 KB RAM footprint: 374-535 KB Battery: NOT observed.

2. CPU Usage: %0.29 Average. Spikes for 2 seconds to %2.7 - %8.5.

* Indicated CPU usage occurs ONLY when there is an EVENT (posture changed, stylus in/out Sounds playing,

etc)

- Vibration: The way I like it is in waves of 200 miliseconds length! I generally hate vibrations, so if you want it at 201 ms. you're welcome to make your own program and enjoy the merits of your personal taste.

- This prgram Registers Event Handlers for: "G-Sensor", "Incoming Call", "Phone Call in Progress", "Stylus in/out", and Power Manager events. DO NOT move it to Internal Storage, you have been warned.

Requirements:

.NET 3.5 + Diamond or Raphael (for all features to work), else, any HTC device with GSensor & Light Sensor.

Bugs/Limitations:

Knock yourself out...

Disclaimer:

This program is provided strictly on "as is" basis. It is intended only as a proof-of-concept. Although fully functional, it must NOT be considered for daily use. This software is very likely to compromise the integrity of your data as well as invariabley cause your device to malfunction in any way, shape, or form. Therefore, the developer shall be absolved of all responsibility towards testers and/or their computers & devices. While using this software you agree to be solely liable for all and any damages you do to yourself, your device, or any damn thing you possess and care for!

Release Notes:

- This is the LAST revision/release/app I make; programming too much work

- Download & Install the CAB

- Run the XSense from your Start Menu\Programs, customize to taste, and enjoy!

Change Log:

- Brand New UI: VERY touch friendly - this is especially useful if you have

an WVGA Device - HD/Rhodium/Topaz/HD2 etc...

- Revised entire code for existing & potential bugs, and Performance

tweaked to death.

- Removed various functions (auto speakerphone, car-kit options, etc...). Use "Touch InCall Screen Tweak" for these,

its handles Phone/Speaker brilliantly!

- Shortcut added to Startup for automatic launch after reboot.

- Shortcut with a nice icon added to Start Menu (Credit to

VetVito

).

- General Tab:

- Navi Button will only light up if the device is in a dark place, i.e. You will

always see where your phone is (before you trash it against the wall).

- Stylus Tab:

- UI elements to select & set sounds for Stylus-in/out events.

Download: XSense 1.2 - Final

http://xdaforums.com/attachment.php?attachmentid=265847&d=1263112521