keyReleased(key, keyCode);
EventCalled whenever a key is released.
Arguments
key
The released key as a string, is nil if glfw cannot find a name for the keykeyCode
The released key as a key codefunction setup()
createWindow(200, 200);
background('purple');
text('Release any key', 10, 40);
end
-- no draw
function draw() return end
function keyReleased(key, keyCode)
print(key, keyCode);
background('purple');
if key ~= nil then
text('Released: ' .. key, 10, 40);
end
end
Output