love2d-community / love-api

The whole LÖVE wiki in a Lua table.
http://love2d-community.github.io/love-api/
300 stars 48 forks source link

Remove keyreleased variant #43

Closed pablomayobre closed 7 years ago

pablomayobre commented 7 years ago

All callbacks should have a single variant, since all arguments will always be provided, it's the decision of the user to ignore them or not. This is the case for ALL callbacks but keyreleased.

This callback provides both a variant with a second argument which is the Scancode and a variant without.

My proposal is to remove the variant that has no Scancode which can be found in lines 775 to 783