Gorilla.Controller.Input.Android.Types

Unit Gorilla.Controller.Input.Android.Types.pas

Classes

Records

Enumerations

  • enum  TGorillaInputSource  = ( Unknown, Keyboard, DPAD, Gamepad, Touchscreen, Mouse, Stylus, BluetoothStylus, Trackball, MouseRelative, Touchpad, TouchNavigation, Joystick, RotaryEncoder, Any ) ;

Constants

  • const AMOTION_EVENT_ACTION_POINTER_INDEX_SHIFT : Integer = $8;
  • const AKEYCODE_DPAD_UP : Integer = $13;
  • const AKEYCODE_DPAD_DOWN : Integer = $14;
  • const AKEYCODE_DPAD_LEFT : Integer = $15;
  • const AKEYCODE_DPAD_RIGHT : Integer = $16;
  • const AKEYCODE_DPAD_CENTER : Integer = $17;
  • const AKEYCODE_BUTTON_A : Integer = $60;
  • const AKEYCODE_BUTTON_B : Integer = $61;
  • const AKEYCODE_BUTTON_C : Integer = $62;
  • const AKEYCODE_BUTTON_X : Integer = $63;
  • const AKEYCODE_BUTTON_Y : Integer = $64;
  • const AKEYCODE_BUTTON_Z : Integer = $65;
  • const AKEYCODE_BUTTON_L1 : Integer = $66;
  • const AKEYCODE_BUTTON_R1 : Integer = $67;
  • const AKEYCODE_BUTTON_L2 : Integer = $68;
  • const AKEYCODE_BUTTON_R2 : Integer = $69;
  • const AKEYCODE_BUTTON_THUMBL : Integer = $6A;
  • const AKEYCODE_BUTTON_THUMBR : Integer = $6B;
  • const AKEYCODE_BUTTON_START : Integer = $6C;
  • const AKEYCODE_BUTTON_SELECT : Integer = $6D;
  • const AKEYCODE_BUTTON_MODE : Integer = $6E;

Mics. types

  • type PInputEvent = pointer to TInputEvent;
  • type PKeyInputEvent = pointer to TKeyInputEvent;
  • type PMotionInputEvent = pointer to TMotionInputEvent;
  • type PGorillaInputListener = pointer to TGorillaInputListener;

TGorillaInputSource

enum TGorillaInputSource = ( Unknown, Keyboard, DPAD, Gamepad, Touchscreen, Mouse, Stylus, BluetoothStylus, Trackball, MouseRelative, Touchpad, TouchNavigation, Joystick, RotaryEncoder, Any ) ; special declaration for 10.1 + 10.2, because TAndroidApplicationGlue did not exist

TGorillaAndroidInputInterceptor

This is the global interceptor class for Android input events. Because we have to intercept the ApplicationGlue for all types of events (keyboard, mouse, gamepad) in the main thread, we have to setup a global component for that. In this component we can link event types with the device handles to react on specific types of events.

Ancestors

Members

Fields

Methods