DirectInput key lookup function?

This is a discussion on DirectInput key lookup function? within the Game Programming forums, part of the General Programming Boards category; Does anyone know if a function exists in DirectInput where I can input an ascii character (or array, in the ...

  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, 12:45 PM
  2. dllimport function not allowed
    By steve1_rm in forum C++ Programming
    Replies: 5
    Last Post: 03-11-2008, 04:33 AM
  3. need help program crashing
    By tunerfreak in forum C++ Programming
    Replies: 14
    Last Post: 05-22-2006, 12:29 PM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 07:39 AM
  5. Registery with api?
    By ismael86 in forum Windows Programming
    Replies: 1
    Last Post: 05-14-2002, 11:28 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21