Results 1 to 2 of 2

Thread: detect mouse/keyboard if not connected to CPU physically

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Location
    Malaysia
    Posts
    3

    Angry

    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



  2. #2
    Lively Member
    Join Date
    Apr 2000
    Location
    Hell
    Posts
    89
    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.
    - Steve

    Real programmers use COPY CON PROGRAM.EXE

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width