PDA

View Full Version : SmartTouch wheel API / messages?


PaFoJu
21st May 2009, 02:35 AM
Hi!

The SmartTouch wheel can be activated for any application by a registry entry, as generally known.

However, as an application programmer, I am wondering: What does the application have to do to reveice the scrolling messages? When I add the registry entry for my app, I get WM_KEYDOWN messages for VK_UP / DOWN as soon as I scroll on the wheel. These are the same messages as for the real up / down keys.

Does anybody know what I need to do in my app to receive distinct messages for scrolling - such as WM_VSCROLL?

An alternative might be the sensor API (http://sensorapi.codeplex.com/). However, I do not see any of the HTC libs loaded for Google Maps or so. So I guess there must be a simpler way...

Thanks!

ZuinigeRijder
24th May 2009, 12:40 PM
Hi!

The SmartTouch wheel can be activated for any application by a registry entry, as generally known.

However, as an application programmer, I am wondering: What does the application have to do to reveice the scrolling messages? When I add the registry entry for my app, I get WM_KEYDOWN messages for VK_UP / DOWN as soon as I scroll on the wheel. These are the same messages as for the real up / down keys.

Does anybody know what I need to do in my app to receive distinct messages for scrolling - such as WM_VSCROLL?

An alternative might be the sensor API (http://sensorapi.codeplex.com/). However, I do not see any of the HTC libs loaded for Google Maps or so. So I guess there must be a simpler way...

Thanks!

I would also like to know how to catch those events from the outside. I am more interested in the ZoomBar of Diamond2, how to catch those, because there the low level API is not (yet) known.