Gládio Cítrico

Ramu 0.7b doc

doc homeRamu

static Object Ramu.pressedKeys

Description

Object with all key presses, the value is a empty object ({}) if no one key is pressed. The key enters it when it is pressed and exits when it is released.

if (keyCode.a in Ramu.pressedKeys){
   alert('A is pressed');
}

See also Ramu.lastKeysPressed.