KasmVNC/unix/xserver/hw/vnc/Input.h

71 lines
2.1 KiB
C
Raw Normal View History

2020-09-20 14:16:44 +02:00
/* Copyright (C) 2009 TightVNC Team
* Copyright (C) 2009, 2010 Red Hat, Inc.
* Copyright (C) 2009, 2010 TigerVNC Team
* Copyright 2013-2015 Pierre Ossman for Cendio AB
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
* USA.
*/
/* Make sure macro doesn't conflict with macro in include/input.h. */
#ifndef INPUT_H_
#define INPUT_H_
#include <stdlib.h>
#include <X11/X.h>
#include "stdbool.h"
2020-09-20 14:16:44 +02:00
#ifdef __cplusplus
extern "C" {
#endif
void vncInitInputDevice(bool freeKeyMappings);
2020-09-20 14:16:44 +02:00
2021-03-22 11:36:39 +01:00
void vncPointerButtonAction(int buttonMask, const unsigned char skipclick,
const unsigned char skiprelease);
2020-09-20 14:16:44 +02:00
void vncPointerMove(int x, int y);
2022-05-03 19:30:12 +02:00
void vncPointerMoveRelative(int x, int y, int absx, int absy);
void vncScroll(int x, int y);
2020-09-20 14:16:44 +02:00
void vncGetPointerPos(int *x, int *y);
void vncKeyboardEvent(KeySym keysym, unsigned xtcode, int down);
/* Backend dependent functions below here */
void vncPrepareInputDevices(void);
unsigned vncGetKeyboardState(void);
unsigned vncGetLevelThreeMask(void);
KeyCode vncPressShift(void);
size_t vncReleaseShift(KeyCode *keys, size_t maxKeys);
KeyCode vncPressLevelThree(void);
size_t vncReleaseLevelThree(KeyCode *keys, size_t maxKeys);
KeyCode vncKeysymToKeycode(KeySym keysym, unsigned state, unsigned *new_state);
int vncIsAffectedByNumLock(KeyCode keycode);
KeyCode vncAddKeysym(KeySym keysym, unsigned state, unsigned int *needfree, bool freeKeys);
void vncRemoveKeycode(unsigned keycode);
2020-09-20 14:16:44 +02:00
#ifdef __cplusplus
}
#endif
#endif