keyPressed(key, keyCode);
EventCalled whenever a key is pressed.
Arguments
key
The pressed key as a string, is nil if glfw cannot find a name for the keykeyCode
The pressed key as a key codefunction setup()
createWindow(600, 600);
end
function draw()
background(51);
end
function keyPressed(key, keyCode)
print(key, keyCode)
end