Thread: DirectInput key lookup function?

  1. #1
    Registered User
    Join Date
    Aug 2002
    Posts
    22

    DirectInput key lookup function?

    Does anyone know if a function exists in DirectInput where I can input an ascii character (or array, in the case of caps lock, etc.) and get a return value of the matching key's DIK code?

    Basically, I want to do is read in a config file with key bindings, look up the key for that action and then assign its DIK to that functionality.

    Thanks,
    Arrow
    Never give an Ewok a thermial detonator

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Why use DirectInput for that? Just use WM_KEY* in your callback function.

  3. #3
    Registered User
    Join Date
    Aug 2002
    Posts
    22
    Because my program already uses DirectInput, and I found to be much better suited to purpose and easier to use than writting a Win32 callback.

    So, does anyone know if this function exists or will I have to make up a switch/if/elseif to this manually?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Undefined Reference Compiling Error
    By AlakaAlaki in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 11:45 AM
  2. dllimport function not allowed
    By steve1_rm in forum C++ Programming
    Replies: 5
    Last Post: 03-11-2008, 03:33 AM
  3. need help program crashing
    By tunerfreak in forum C++ Programming
    Replies: 14
    Last Post: 05-22-2006, 11:29 AM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  5. Registery with api?
    By ismael86 in forum Windows Programming
    Replies: 1
    Last Post: 05-14-2002, 10:28 AM