Firefox OS/Remote Control: Difference between revisions

no edit summary
No edit summary
Line 3: Line 3:


== Architecture Designs ==
== Architecture Designs ==
=== Ajax Protocol ===
==== Touch Events ====
  {
    type: 'touchstart',
    detail: {
      width: <touch panel width, integer, in pixels>,
      height: <touch panel height, integer, in pixels>
    }
  }
  {
    type: 'touchmove',
    detail: {
      dx: <dx between current point and starting point, integer, in pixels>,
      dy: <dy between current point and starting point, integer, in pixels>,
      duration: <duration from "touchstart", integer, in milliseconds>
    }
  }
  {
    type: 'touchend',
    detail: {
      dx: <same as "touchmove">,
      dy: <same as "touchmove">,
      duration: <same as "touchmove">,
      swipe: <the gesture within this touch, string, should be "left", "right", "up" and "down">
    }
  }
==== Scroll Events ====
There are "scrollstart", "scrollmove", "scrollend" events whose details are all the same as touch events above.
==== Key Events ====
  {
    type: 'keypress',
    detail: <KeyEvent constant, string, sush as "DOM_VK_RETURN">
  }
==== Input Events ====
  {
    type: 'input',
    detail: {
      clear: <whether to clear the entire string in the current focused input field, boolean>,
      string: <new string to append, string>
    }
  }


=== Pairing ===
=== Pairing ===
Confirmed users
133

edits