Thread: left or right ctrl/alt keys

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    53

    left or right ctrl/alt keys

    Is there a way to tell the difference bettween left and right ctrl/alt Keys? I'll be using VS2003, c++ or c#.

    JMD

  2. #2
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    This should be in the C/C++ board.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Actually the windows board
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    http://msdn.microsoft.com/library/de..._Key_Codes.asp

    MSDN says the virtual key codes are VK_LCONTROL and VK_RONTROL for left and right ctrl keys, although I suspect the latter was a typo. The others alts are there too: VK_LMENU and VK_RMENU
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  5. #5
    Registered User
    Join Date
    Jul 2003
    Posts
    53
    Thanks, I wasn't sure what board it should go in.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Pressed keys problem
    By Snip in forum Game Programming
    Replies: 2
    Last Post: 08-31-2005, 07:41 AM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  3. pointer to array of objects of struct
    By undisputed007 in forum C++ Programming
    Replies: 12
    Last Post: 03-02-2004, 04:49 AM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  5. Please help me
    By teedee46 in forum C++ Programming
    Replies: 9
    Last Post: 05-06-2002, 11:28 PM