Blame include/freerdp/channels/rdpei.h

Packit 1fb8d4
/**
Packit 1fb8d4
 * FreeRDP: A Remote Desktop Protocol Implementation
Packit 1fb8d4
 * Extended Input channel common definitions
Packit 1fb8d4
 *
Packit 1fb8d4
 * Copyright 2013 Marc-Andre Moreau <marcandre.moreau@gmail.com>
Packit 1fb8d4
 * Copyright 2014 Thincast Technologies Gmbh.
Packit 1fb8d4
 * Copyright 2014 David FORT <contact@hardening-consulting.com>
Packit 1fb8d4
 *
Packit 1fb8d4
 * Licensed under the Apache License, Version 2.0 (the "License");
Packit 1fb8d4
 * you may not use this file except in compliance with the License.
Packit 1fb8d4
 * You may obtain a copy of the License at
Packit 1fb8d4
 *
Packit 1fb8d4
 *     http://www.apache.org/licenses/LICENSE-2.0
Packit 1fb8d4
 *
Packit 1fb8d4
 * Unless required by applicable law or agreed to in writing, software
Packit 1fb8d4
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit 1fb8d4
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit 1fb8d4
 * See the License for the specific language governing permissions and
Packit 1fb8d4
 * limitations under the License.
Packit 1fb8d4
 */
Packit 1fb8d4
Packit 1fb8d4
#ifndef FREERDP_CHANNEL_RDPEI_H
Packit 1fb8d4
#define FREERDP_CHANNEL_RDPEI_H
Packit 1fb8d4
Packit 1fb8d4
#include <winpr/wtypes.h>
Packit 1fb8d4
Packit Service 5a9772
#define RDPINPUT_HEADER_LENGTH 6
Packit 1fb8d4
Packit Service 5a9772
#define RDPEI_DVC_CHANNEL_NAME "Microsoft::Windows::RDS::Input"
Packit 1fb8d4
Packit 1fb8d4
/** @brief protocol version */
Packit Service 5a9772
enum
Packit Service 5a9772
{
Packit 1fb8d4
	RDPINPUT_PROTOCOL_V10 = 0x00010000,
Packit 1fb8d4
	RDPINPUT_PROTOCOL_V101 = 0x00010001
Packit 1fb8d4
};
Packit 1fb8d4
Packit 1fb8d4
/* Client Ready Flags */
Packit Service 5a9772
#define READY_FLAGS_SHOW_TOUCH_VISUALS 0x00000001
Packit Service 5a9772
#define READY_FLAGS_DISABLE_TIMESTAMP_INJECTION 0x00000002
Packit 1fb8d4
Packit Service 5a9772
#define CONTACT_DATA_CONTACTRECT_PRESENT 0x0001
Packit Service 5a9772
#define CONTACT_DATA_ORIENTATION_PRESENT 0x0002
Packit Service 5a9772
#define CONTACT_DATA_PRESSURE_PRESENT 0x0004
Packit 1fb8d4
Packit Service 5a9772
#define CONTACT_FLAG_DOWN 0x0001
Packit Service 5a9772
#define CONTACT_FLAG_UPDATE 0x0002
Packit Service 5a9772
#define CONTACT_FLAG_UP 0x0004
Packit Service 5a9772
#define CONTACT_FLAG_INRANGE 0x0008
Packit Service 5a9772
#define CONTACT_FLAG_INCONTACT 0x0010
Packit Service 5a9772
#define CONTACT_FLAG_CANCELED 0x0020
Packit 1fb8d4
Packit 1fb8d4
/** @brief a contact point */
Packit 1fb8d4
struct _RDPINPUT_CONTACT_DATA
Packit 1fb8d4
{
Packit 1fb8d4
	UINT32 contactId;
Packit 1fb8d4
	UINT32 fieldsPresent;
Packit 1fb8d4
	INT32 x;
Packit 1fb8d4
	INT32 y;
Packit 1fb8d4
	UINT32 contactFlags;
Packit 1fb8d4
	INT32 contactRectLeft;
Packit 1fb8d4
	INT32 contactRectTop;
Packit 1fb8d4
	INT32 contactRectRight;
Packit 1fb8d4
	INT32 contactRectBottom;
Packit 1fb8d4
	UINT32 orientation;
Packit 1fb8d4
	UINT32 pressure;
Packit 1fb8d4
};
Packit 1fb8d4
typedef struct _RDPINPUT_CONTACT_DATA RDPINPUT_CONTACT_DATA;
Packit 1fb8d4
Packit 1fb8d4
/** @brief a frame containing contact points */
Packit 1fb8d4
struct _RDPINPUT_TOUCH_FRAME
Packit 1fb8d4
{
Packit 1fb8d4
	UINT32 contactCount;
Packit 1fb8d4
	UINT64 frameOffset;
Packit 1fb8d4
	RDPINPUT_CONTACT_DATA* contacts;
Packit 1fb8d4
};
Packit 1fb8d4
typedef struct _RDPINPUT_TOUCH_FRAME RDPINPUT_TOUCH_FRAME;
Packit 1fb8d4
Packit 1fb8d4
/** @brief a touch event with some frames*/
Packit 1fb8d4
struct _RDPINPUT_TOUCH_EVENT
Packit 1fb8d4
{
Packit 1fb8d4
	UINT32 encodeTime;
Packit 1fb8d4
	UINT16 frameCount;
Packit 1fb8d4
	RDPINPUT_TOUCH_FRAME* frames;
Packit 1fb8d4
};
Packit 1fb8d4
typedef struct _RDPINPUT_TOUCH_EVENT RDPINPUT_TOUCH_EVENT;
Packit 1fb8d4
Packit 1fb8d4
#endif /* FREERDP_CHANNEL_RDPEI_H */