VirtualTouchpadService.aidl revision 89af70bce420f011adfeb0f80984b3895c4d7d9b
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 x Horizontal touch position. 12 * @param y Vertical touch position. 13 * @param pressure Touch pressure; use 0.0 for no touch (lift or hover). 14 * 15 * Position values in the range [0.0, 1.0) map to the screen. 16 */ 17 void touch(float x, float y, float pressure); 18 19 /** 20 * Generate a simulated touchpad button state event. 21 * 22 * @param buttons A union of MotionEvent BUTTON_* values. 23 */ 24 void buttonState(int buttons); 25} 26