projects: update some short descriptions
[nit.git] / lib / mnit_input.nit
index cd6c59d..ea035b3 100644 (file)
@@ -66,7 +66,7 @@ interface KeyEvent
        fun is_down: Bool is abstract
 
        # Key is currently up?
-       fun is_up: Bool is abstract
+       fun is_up: Bool do return not is_down
 
        # Key is the up arrow key?
        fun is_arrow_up: Bool is abstract
@@ -85,6 +85,11 @@ interface KeyEvent
 
        # Get Char value of key, if any
        fun to_c: nullable Char is abstract
+
+       # Name of the key that raised `self`
+       #
+       # Use mainly for debug since it is implementation dependent.
+       fun name: String is abstract
 end
 
 # Mobile hardware (or pseudo hardware) event