Results 1 to 2 of 2

Thread: Capturing simultaneous keypresses

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2005
    Posts
    1

    Capturing simultaneous keypresses

    I'm trying to write a game but I can't find a function which allows multiple keypresses at the same time, eg. moving and shooting at the same time using spacebar and arrow keys. Right now I'm using ProcessCmdKey which only allows one key at a time. What function can I use?

    PJ

  2. #2
    Frenzied Member conipto's Avatar
    Join Date
    Jun 2005
    Location
    Chicago
    Posts
    1,175

    Re: Capturing simultaneous keypresses

    http://vbforums.com/showthread.php?s=&threadid=280308

    This example is in visual basic, but it's the principal you're after, not the actual code.

    Bill
    Hate Adobe Acrobat? My Codebank Sumbissions - Easy CodeDom Expression evaluator: (VB / C# ) -- C# Scrolling Text Display

    I Like to code when drunk. Don't say you weren't warned.

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