PDA

Click to See Complete Forum and Search --> : detect mouse/keyboard if not connected to CPU physically


lapoorpo
May 20th, 2000, 05:49 PM
Hi there,

I've been trying this for weeks now. I've tried using the GetDeviceStatus() function from the DirectInput class of the Directx7 object that by right should return if a device created is attached to the system physically or not ? But it just doesn't work, where it always returns as true even if the device (mouse/keyboard) is not attached to the system (CPU) physically.


Please helppppp!!!!!!

Regards
Jps

Stevie-O
May 22nd, 2000, 12:47 AM
This is simply not possible. Try unplugging your keyboard and starting your computer - it'll beep and say "Keyboard error - press F1 to continue." (Some BIOSes are smart and prepend "Keyboard not found or"). In user mode, you simply do not have the necessary control of the system to accomplish this.