keyReleased

v0.1.7
keyReleased(key, keyCode);Event

Called whenever a key is released.

Arguments

keyThe released key as a string, is nil if glfw cannot find a name for the key
keyCodeThe released key as a key code

function 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

See keyReleased in keyboard.h