nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: intro `Float.lerp` for simple linear interpolation
[nit.git]
/
lib
/
mnit_input.nit
diff --git
a/lib/mnit_input.nit
b/lib/mnit_input.nit
index
0536660
..
58864e4
100644
(file)
--- a/
lib/mnit_input.nit
+++ b/
lib/mnit_input.nit
@@
-37,7
+37,9
@@
interface PointerEvent
fun depressed: Bool is abstract
end
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
interface MotionEvent
super InputEvent
@@
-83,6
+85,11
@@
interface KeyEvent
# Get Char value of key, if any
fun to_c: nullable Char is abstract
# 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
end
# Mobile hardware (or pseudo hardware) event