Skip to content

Events #397

Open
Open

Description

@pleszkiewicz

< Main issue

Description

There are some events that are not related to any particular component (system events) which should be able to be handled from magic-script side.

The list of events of interests:

  ControlPose3DofInputEventData,
  ControlPose6DofInputEventData,
  ControlTouchPadInputEventData,
  EyeTrackingEventData,
  GestureInputEventData,
  InputEventData,
  KeyInputEventData,
  RayCastEventData,
  SelectionEventData,
  UiEventData,
  VideoEventData
  • All components should support onLoopUpdate and onEvent callbacks (see Sample section below).
  • There can be multiple components in the hierarchy which handle onLoopUpdate and/or onEvent callbacks - each of them should deliver the same events.
    Here is the idea of how the events should be handled in JSX component:
<Content onLoopUpdate={...} onEvent={...} />

Sample

Events example

Completion status

  • Android
  • iOS

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions