View Single Post
  #1 (permalink)  
Old 04-29-2009, 04:11 PM
Cobaltikus's Avatar
Cobaltikus
PPCGeeks Regular
Offline
 
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