Thread: Shift key extended code

  1. #1
    Unregistered
    Guest

    Shift key extended code

    hi
    i am developing a game in C . I want to move something with SHIFT keys i cannot get the SCAN code of SHIFT key . can anyone help me out with this?
    bye

  2. #2
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    depending on what you're doing, asciitable.com might be able to help you

  3. #3
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    also RBIL might help... if you are doing it in DOS... (Ralph Brown's Interrupt List)...
    hasafraggin shizigishin oppashigger...

  4. #4
    Visionary Philosopher Sayeh's Avatar
    Join Date
    Aug 2002
    Posts
    212
    A bit of an important note:

    "key codes" are NOT ASCII codes. Key Codes are codes generated by the hardware to differentiate every single key on the keyboard, including the modifiers (Shift, Control, Alt, etc.).

    Both the Left Shift Key and the Right Shift Key will have different Key Codes.
    It is not the spoon that bends, it is you who bends around the spoon.

  5. #5
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050

    Angry

    Sayeh, yes, but if you actually go there you'll notice that it has information on key codes.

    EDIT: not sure why it's puttting a frowning face...
    Last edited by TechWins; 08-23-2002 at 10:20 AM.

  6. #6
    Unregistered
    Guest

    thanks

    hi
    thanks to all of u for ur replys.
    any how i did it using memory address 0x00000417L.. This address has the status for modifier keys like SHIFT,CAP Lock, Num lock etx..
    bye

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to obtain more key code in curses ?
    By intmail in forum Linux Programming
    Replies: 1
    Last Post: 07-08-2006, 12:21 PM
  2. Simulating Shift Key
    By PrimeTime00 in forum Windows Programming
    Replies: 7
    Last Post: 10-15-2004, 05:53 AM
  3. << !! Posting Code? Read this First !! >>
    By kermi3 in forum Game Programming
    Replies: 0
    Last Post: 10-14-2002, 01:27 PM
  4. << !! Posting Code? Read this First !! >>
    By kermi3 in forum C# Programming
    Replies: 0
    Last Post: 10-14-2002, 01:26 PM
  5. Registery with api?
    By ismael86 in forum Windows Programming
    Replies: 1
    Last Post: 05-14-2002, 10:28 AM