tests: tests.sh detects directories before trying to execute them
[nit.git] / lib / mnit_input.nit
index 0536660..58864e4 100644 (file)
@@ -37,7 +37,9 @@ interface PointerEvent
        fun depressed: Bool is abstract
 end
 
-# Pointer motion event, mais concern many events
+# A motion event on screen composed of many `PointerEvent`
+#
+# Example of a `MotionEvent` a gesture such as pinching using two fingers.
 interface MotionEvent
        super InputEvent
 
@@ -83,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