input_events

module input_events

Dependencies

dep_module_android__input_eventsinputinputgamegamegamepadgamepadinput_eventsinput_eventsgamepad->input_eventsinput_events->inputinput_events->gamegamnit_androidgamnit_androidgamnit_android->input_eventscamera_control_androidcamera_control_androidcamera_control_android->gamnit_androidandroid_appandroid_appandroid_app->input_eventsandroid_opengles1android_opengles1android_opengles1->android_appandroid_assetsandroid_assetsandroid_assets->android_appandroidandroidandroid->android_opengles1android->android_assets

Imports

  • game: Android services and implementation of app.nit for gamnit and mnit
  • input: Defines abstract classes for user and general inputs to the application.

Clients

  • android: Android support for MNit
  • android_app: Impements the services of mnit:app using the API from the Android ndk
  • android_assets: Implements the mnit::assets services with a wraper around the filesystem
  • android_opengles1: Adapts OpenGL ES 1.0 for use on Android by offering services to get
  • camera_control_android: Two fingers camera manipulation, pinch to zoom and slide to scroll
  • gamepad: Support for gamepad events (over Bluetooth or USB)
  • gamnit_android: Support services for Gamnit on Android

Concerns

  • android: Android platform support and APIs
  • app: app.nit, a framework for portable applications
    • app_base: Base of the app.nit framework, defines App

in android::input_events

AndroidKeyEvent

extern class AndroidKeyEvent

An hardware key event

Introduces
Redefines
  • SELF: Type of this instance, automatically specialized in every class
  • is_down: Key is currently down?
  • is_up: Key is currently up?
  • to_c: Get Char value of key, if any
  • name: Name of the key that raised self

AndroidMotionEvent

class AndroidMotionEvent

A motion event concerning a single or more pointers

Introduces
  • pointers: Pointers (or fingers) composing this motion event
  • pointers=: Pointers (or fingers) composing this motion event
  • acting_pointer: The pointer (or finger) causing this event
  • acting_pointer=: The pointer (or finger) causing this event
  • touch_to_edge: Was the top edge of the screen intersected by this event?
  • touch_bottom_edge: Was the bottom edge of the screen intersected by this event?
  • touch_left_edge: Was the left edge of the screen intersected by this event?
  • touch_right_edge: Was the right edge of the screen intersected by this event?
  • down_time: Time when the user originally pressed down to start a stream of position events
Redefines

AndroidPointerEvent

class AndroidPointerEvent

A pointer event

Introduces
  • pressure: Pressure applied by this pointer
  • just_went_down: Does this pointer just began touching the screen?
Redefines
  • SELF: Type of this instance, automatically specialized in every class
  • x: X position on screen (in pixels)
  • y: Y position on screen (in pixels)
  • pressed: Is down? either going down or already down
  • is_move: Is this a movement event?
  • pointer_id: Unique id of this pointer since the beginning of the gesture
  • init

from app::app_base