+
+ # Main method to receive `InputEvent` produced by the system
+ #
+ # Returns whether or not the event is used or intercepted.
+ # If `true`, the event will not be processed further by the system.
+ # Returns `false` to intercepts events like the back key on mobile devices.
+ #
+ # This method should be refined by client modules to react to user inputs.
+ fun accept_event(event: InputEvent): Bool do return false
+end
+
+redef class Sys
+ redef fun run
+ do
+ if "NIT_TESTING".environ == "true" then exit 0
+ super
+ end