VirtualTouchpadService.aidl revision 3002b8a74431dd7c005269cf9306443a4b4963f1
1package android.dvr;
2
3/** @hide */
4interface VirtualTouchpadService
5{
6  const String SERVICE_NAME = "virtual_touchpad";
7
8  /**
9   * Generate a simulated touch event.
10   *
11   * @param touchpad Selects touchpad.
12   * @param x Horizontal touch position.
13   * @param y Vertical touch position.
14   * @param pressure Touch pressure; use 0.0 for no touch (lift or hover).
15   *
16   * Position values in the range [0.0, 1.0) map to the screen.
17   */
18  void touch(int touchpad, float x, float y, float pressure);
19
20  /**
21   * Generate a simulated touchpad button state event.
22   *
23   * @param touchpad Selects touchpad.
24   * @param buttons A union of MotionEvent BUTTON_* values.
25   */
26  void buttonState(int touchpad, int buttons);
27}
28