VRDEInput.h revision e6725710856db1d20c16eb103a0d3ea8f46a982a
af062818b47340eef15700d2f0211576ba3506eevboxsync * VBox Remote Desktop Extension (VRDE) - Input interface.
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright (C) 2013 Oracle Corporation
af062818b47340eef15700d2f0211576ba3506eevboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
af062818b47340eef15700d2f0211576ba3506eevboxsync * available from http://www.virtualbox.org. This file is free software;
af062818b47340eef15700d2f0211576ba3506eevboxsync * you can redistribute it and/or modify it under the terms of the GNU
af062818b47340eef15700d2f0211576ba3506eevboxsync * General Public License (GPL) as published by the Free Software
af062818b47340eef15700d2f0211576ba3506eevboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
af062818b47340eef15700d2f0211576ba3506eevboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
af062818b47340eef15700d2f0211576ba3506eevboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
af062818b47340eef15700d2f0211576ba3506eevboxsync * The contents of this file may alternatively be used under the terms
af062818b47340eef15700d2f0211576ba3506eevboxsync * of the Common Development and Distribution License Version 1.0
af062818b47340eef15700d2f0211576ba3506eevboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
af062818b47340eef15700d2f0211576ba3506eevboxsync * VirtualBox OSE distribution, in which case the provisions of the
af062818b47340eef15700d2f0211576ba3506eevboxsync * CDDL are applicable instead of those of the GPL.
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * You may elect to license modified versions of this file under the
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * terms and conditions of either the GPL or the CDDL or both.
af062818b47340eef15700d2f0211576ba3506eevboxsync * Interface for receiving input events from the client.
af062818b47340eef15700d2f0211576ba3506eevboxsync/* All structures in this file are packed.
af062818b47340eef15700d2f0211576ba3506eevboxsync * Everything is little-endian.
af062818b47340eef15700d2f0211576ba3506eevboxsync * The application interface between VirtualBox and the VRDE server.
af062818b47340eef15700d2f0211576ba3506eevboxsync * Supported input methods.
af062818b47340eef15700d2f0211576ba3506eevboxsync * fu32Flags for VRDEInputSetup
af062818b47340eef15700d2f0211576ba3506eevboxsync/* The interface entry points. Interface version 1. */
af062818b47340eef15700d2f0211576ba3506eevboxsync /* The header. */
af062818b47340eef15700d2f0211576ba3506eevboxsync /* Tell the server that an input method will be used or disabled, etc.
af062818b47340eef15700d2f0211576ba3506eevboxsync * VRDECallbackInputSetup will be called with a result.
af062818b47340eef15700d2f0211576ba3506eevboxsync * @param hServer The VRDE server instance.
af062818b47340eef15700d2f0211576ba3506eevboxsync * @param u32Method The method VRDE_INPUT_METHOD_*.
af062818b47340eef15700d2f0211576ba3506eevboxsync * @param fu32Flags What to do with the method VRDE_INPUT_F_*.
af062818b47340eef15700d2f0211576ba3506eevboxsync * @param pvSetup Method specific parameters (optional).
af062818b47340eef15700d2f0211576ba3506eevboxsync * @param cbSetup Size of method specific parameters (optional).
af062818b47340eef15700d2f0211576ba3506eevboxsync DECLR3CALLBACKMEMBER(void, VRDEInputSetup, (HVRDESERVER hServer,
af062818b47340eef15700d2f0211576ba3506eevboxsync const void *pvSetup,
af062818b47340eef15700d2f0211576ba3506eevboxsync/* Interface callbacks. */
af062818b47340eef15700d2f0211576ba3506eevboxsync /* The header. */
af062818b47340eef15700d2f0211576ba3506eevboxsync /* VRDPInputSetup async result.
af062818b47340eef15700d2f0211576ba3506eevboxsync * @param pvCallback The callbacks context specified in VRDEGetInterface.
af062818b47340eef15700d2f0211576ba3506eevboxsync * @param rcSetup The result code of the request.
af062818b47340eef15700d2f0211576ba3506eevboxsync * @param u32Method The method VRDE_INPUT_METHOD_*.
af062818b47340eef15700d2f0211576ba3506eevboxsync * @param pvResult The result information.
af062818b47340eef15700d2f0211576ba3506eevboxsync * @param cbResult The size of buffer pointed by pvResult.
af062818b47340eef15700d2f0211576ba3506eevboxsync DECLR3CALLBACKMEMBER(void, VRDECallbackInputSetup,(void *pvCallback,
af062818b47340eef15700d2f0211576ba3506eevboxsync const void *pvResult,
af062818b47340eef15700d2f0211576ba3506eevboxsync /* Input event.
af062818b47340eef15700d2f0211576ba3506eevboxsync * @param pvCallback The callbacks context specified in VRDEGetInterface.
af062818b47340eef15700d2f0211576ba3506eevboxsync * @param u32Method The method VRDE_INPUT_METHOD_*.
af062818b47340eef15700d2f0211576ba3506eevboxsync * @param pvEvent The event data.
af062818b47340eef15700d2f0211576ba3506eevboxsync * @param cbEvent The size of buffer pointed by pvEvent.
af062818b47340eef15700d2f0211576ba3506eevboxsync DECLR3CALLBACKMEMBER(void, VRDECallbackInputEvent,(void *pvCallback,
af062818b47340eef15700d2f0211576ba3506eevboxsync const void *pvEvent,
af062818b47340eef15700d2f0211576ba3506eevboxsync * Touch input definitions VRDE_INPUT_METHOD_TOUCH.
af062818b47340eef15700d2f0211576ba3506eevboxsync/* pvResult is not used */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* RDPINPUT_HEADER */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* VRDEINPUTHEADER::u16EventId */
af062818b47340eef15700d2f0211576ba3506eevboxsync#define VRDEINPUT_EVENTID_DISMISS_HOVERING_CONTACT 0x0006
af062818b47340eef15700d2f0211576ba3506eevboxsync/* RDPINPUT_SC_READY_PDU */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* RDPINPUT_CS_READY_PDU */
af062818b47340eef15700d2f0211576ba3506eevboxsync#define VRDEINPUT_READY_FLAGS_SHOW_TOUCH_VISUALS 0x00000001
af062818b47340eef15700d2f0211576ba3506eevboxsync#define VRDEINPUT_READY_FLAGS_DISABLE_TIMESTAMP_INJECTION 0x00000002
af062818b47340eef15700d2f0211576ba3506eevboxsync/* RDPINPUT_CONTACT_DATA */
af062818b47340eef15700d2f0211576ba3506eevboxsync#define VRDEINPUT_CONTACT_DATA_CONTACTRECT_PRESENT 0x0001
af062818b47340eef15700d2f0211576ba3506eevboxsync#define VRDEINPUT_CONTACT_DATA_ORIENTATION_PRESENT 0x0002
af062818b47340eef15700d2f0211576ba3506eevboxsync#define VRDEINPUT_CONTACT_DATA_PRESSURE_PRESENT 0x0004
af062818b47340eef15700d2f0211576ba3506eevboxsync/* RDPINPUT_TOUCH_FRAME */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* RDPINPUT_TOUCH_EVENT_PDU */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* RDPINPUT_SUSPEND_TOUCH_PDU */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* RDPINPUT_RESUME_TOUCH_PDU */
af062818b47340eef15700d2f0211576ba3506eevboxsync/* RDPINPUT_DISMISS_HOVERING_CONTACT_PDU */