Tablet PC - API for measuring Z

Hi -

I was wondering what was the API to calculate how far the stylus was from the screen. I know how to get the x and the y co-ordinates I was looking for the Z.

Any help would be highly appreciated -

Santosh

[241 byte] By [ssharan] at [2008-2-13]
# 1

Hi Santosh,

in order obtain information about the z-coordinate, you would add PacketProperty.Z to your desired packet description:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tpcsdk10/lonestar/microsoft.ink/Classes/packetproperty/Fields/z.asp

That's the theory. However, the reality is that none of the existing hardware provides this information. At least I am not aware of any hardware that reports the z-property.

Thanks - Stefan Wick

StefanWick-MSFT at 2007-9-9 > top of Msdn Tech,Software Development for Windows Vista,Notebook, Tablet PC, and UMPC Development...

Software Development for Windows Vista

Site Classified