Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Many times when I'm working on Flash games I'll find that a particular combination of keys held at the same time doesn't register, e.g. LEFT, DOWN and SPACEBAR.

I know from my days playing Doom this can be caused by the keyboard hardware, but surely technology has moved on since those spongy beige PS2 keyboards?

So my question: are these problems caused by Flash, by the hardware, by the operating system, or something else?

share|improve this question
add comment

3 Answers

up vote 6 down vote accepted

it's still keyboard hardware limitations. http://en.wikipedia.org/wiki/Rollover_%28key%29

share|improve this answer
add comment

The problem also occurs in Java games so I suspect it's on the OS level or lower.

share|improve this answer
1  
This is really a comment, not an answer to the question. Please use "add comment" to leave feedback for the author. –  Jonathan Hobbs Aug 22 '12 at 6:52
add comment

What you want to do is to have Boolean variables and turn them on and off while they are pressed and un-pressed. Flash has a combination of just a couple of keys(i do not know why) but you can easily get around it by just keeping your variables up to date when they are pressed and released.

share|improve this answer
    
-1 In this circumstance, Iain is talking about a situation where Flash actually never gets informed of the keypress, so this is useless. –  Jonathan Hobbs Aug 22 '12 at 6:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.