Gládio Cítrico

Ramu 0.7b doc

doc homeRamu

static Object Ramu.lastKeysPressed

Description

Object with all key presses in the current frame, the value is a empty object ({}) if no one key is pressed. The object is emptied on the end of frame.

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

See also Ramu.pressedKeys.