ainput.h (1688B)
1/** 2 * FreeRDP: A Remote Desktop Protocol Implementation 3 * Audio Input Redirection Virtual Channel 4 * 5 * Copyright 2022 Armin Novak <anovak@thincast.com> 6 * Copyright 2022 Thincast Technologies GmbH 7 * 8 * Licensed under the Apache License, Version 2.0 (the "License"); 9 * you may not use this file except in compliance with the License. 10 * You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, software 15 * distributed under the License is distributed on an "AS IS" BASIS, 16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 * See the License for the specific language governing permissions and 18 * limitations under the License. 19 */ 20 21#ifndef FREERDP_CHANNEL_AINPUT_H 22#define FREERDP_CHANNEL_AINPUT_H 23 24#include <freerdp/api.h> 25#include <freerdp/dvc.h> 26#include <freerdp/types.h> 27 28#define AINPUT_CHANNEL_NAME "ainput" 29#define AINPUT_DVC_CHANNEL_NAME "FreeRDP::Advanced::Input" 30 31typedef enum 32{ 33 MSG_AINPUT_VERSION = 0x01, 34 MSG_AINPUT_MOUSE = 0x02 35} eAInputMsgType; 36 37typedef enum 38{ 39 AINPUT_FLAGS_WHEEL = 0x0001, 40 AINPUT_FLAGS_MOVE = 0x0004, 41 AINPUT_FLAGS_DOWN = 0x0008, 42 43 AINPUT_FLAGS_REL = 0x0010, 44 AINPUT_FLAGS_HAVE_REL = 0x0020, 45 46 /* Pointer Flags */ 47 AINPUT_FLAGS_BUTTON1 = 0x1000, /* left */ 48 AINPUT_FLAGS_BUTTON2 = 0x2000, /* right */ 49 AINPUT_FLAGS_BUTTON3 = 0x4000, /* middle */ 50 51 /* Extended Pointer Flags */ 52 AINPUT_XFLAGS_BUTTON1 = 0x0100, 53 AINPUT_XFLAGS_BUTTON2 = 0x0200 54} AInputEventFlags; 55 56typedef struct ainput_client_context AInputClientContext; 57 58#define AINPUT_VERSION_MAJOR 1 59#define AINPUT_VERSION_MINOR 0 60 61#endif /* FREERDP_CHANNEL_AINPUT_H */