/// <summary> /// Process the input event. /// </summary> /// <param name="state"> /// Specifies the input status value. /// 0: mouse moving. /// 1: mouse button down. /// 2: mouse button up. /// 3: mouse wheel /// </param> /// <param name="key"> /// Specifies which key handles the input. /// 0: left mouse button (in case of state 1 and 2) /// 1: right mouse button (in case of state 1 and 2) /// 2: middle mouse button (in case of state 1 and 2) /// delta value: in case of state 3 /// </param> /// <param name="x">The current x coordinate value of the mouse pointer.</param> /// <param name="y">The current x coordinate value of the mouse pointer.</param> public void InputEvent(int state, int key, int x, int y) { Setup(); #if UNIWEBVIEW3_SUPPORTED UniWebViewInterface.InputEvent(listener.Name, state, key, x, y); #elif UNIWEBVIEW2_SUPPORTED UniWebViewPlugin.InputEvent(listener.Name, state, key, x, y); #else WWebViewPlugin.InputEvent(listener.Name, state, key, x, y); #endif }