September 2009
2 posts
N-Key Rollover, or Why Modern Keyboards Suck
Have you ever tried to play a two-player game on one keyboard? Chances are it wasn’t a fun experience. You press down a few keys, and the rest don’t register at all! What gives?
What we want is called n-key rollover aka NKRO, a feature that older keyboards like the IBM Model M used to have. But these days, manufacturers have been cutting costs. According to this blog, keyboard...
JavaScript Scoping Oddity
Guess the output.
var outer = "test1"
function test1(){
var inner = outer
return inner
}
function test2(){
var inner = outer
var outer = "test2"
return inner
}
test1()
test2()