PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro
Register Community Search

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-29-2009, 04:11 PM
Cobaltikus's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC Touch Pro 2
Carrier: Sprint
 
Join Date: May 2008
Posts: 237
Reputation: 220
Cobaltikus is keeping up the good workCobaltikus is keeping up the good workCobaltikus is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
c++ Stylus Out Detection [SOLVED]

Does anyone know how to detect if the stylus is out using c++ WITHOUT using the registry?

The registry is not always accurate.

example:
if the stylus is out when the Touch Pro turns off (like if you soft reset with the stylus) and then you replace it before the OS is fully up and operational, according to the registry the stylus is still out - even though the stylus is in. If you remove the stylus and then put it back, then the registry is correct from that point forward.

HKCU\ControlPanel\Keybd\StylusOutStatus

Edit: SOLVED

no2chem has a dll called nueGPIO.dll in his nueSIPStylus program which has a function to query gpio 0x25 which detects if the stylus is in the slot.

THANKS NO2CHEM!!!!!!

Last edited by Cobaltikus; 05-01-2009 at 12:27 AM. Reason: c++ Stylus Out Detection [SOLVED]
Reply With Quote
Reply

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 04:03 PM.


Powered by vBulletin® ©2000 - 2024, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com