玉兔远程控制 0.1.0-bate14
载入中...
搜索中...
未找到
KeyInjector类 参考
类 KeyInjector 继承关系图:
KeyInjector 的协作图:

Public 成员函数

 KeyInjector (QObject *parent=nullptr)
bool init ()
bool sendKey (Qt::Key key)
bool sendKeyCombo (const QList< Qt::Key > &modifiers, Qt::Key key)
bool sendSuper ()
void cleanup ()

Private 成员函数

bool initX11 ()
bool initUInput ()
void cleanupX11 ()
void cleanupUInput ()
bool sendKeyX11 (Qt::Key key, bool press)
bool sendKeyUInput (int linux_keycode, int value)
int qtKeyToKeySym (Qt::Key key, bool *ok=nullptr)
int qtKeyToLinuxKey (Qt::Key key, bool *ok=nullptr)

Private 属性

bool useX11 = false
bool useUinput = false
void * x11Display = nullptr
int uinputFd = -1

详细描述

在文件 KeyInjector.h 第 10 行定义.

构造及析构函数说明

◆ KeyInjector()

KeyInjector::KeyInjector ( QObject * parent = nullptr)
explicit

在文件 KeyInjector.cpp 第 24 行定义.

◆ ~KeyInjector()

KeyInjector::~KeyInjector ( )

在文件 KeyInjector.cpp 第 29 行定义.

成员函数说明

◆ cleanup()

void KeyInjector::cleanup ( )

在文件 KeyInjector.cpp 第 176 行定义.

◆ cleanupUInput()

void KeyInjector::cleanupUInput ( )
private

在文件 KeyInjector.cpp 第 165 行定义.

◆ cleanupX11()

void KeyInjector::cleanupX11 ( )
private

在文件 KeyInjector.cpp 第 102 行定义.

◆ init()

bool KeyInjector::init ( )

在文件 KeyInjector.cpp 第 34 行定义.

◆ initUInput()

bool KeyInjector::initUInput ( )
private

在文件 KeyInjector.cpp 第 112 行定义.

◆ initX11()

bool KeyInjector::initX11 ( )
private

在文件 KeyInjector.cpp 第 70 行定义.

◆ qtKeyToKeySym()

int KeyInjector::qtKeyToKeySym ( Qt::Key key,
bool * ok = nullptr )
private

在文件 KeyInjector.cpp 第 293 行定义.

◆ qtKeyToLinuxKey()

int KeyInjector::qtKeyToLinuxKey ( Qt::Key key,
bool * ok = nullptr )
private

在文件 KeyInjector.cpp 第 333 行定义.

◆ sendKey()

bool KeyInjector::sendKey ( Qt::Key key)

在文件 KeyInjector.cpp 第 184 行定义.

◆ sendKeyCombo()

bool KeyInjector::sendKeyCombo ( const QList< Qt::Key > & modifiers,
Qt::Key key )

在文件 KeyInjector.cpp 第 189 行定义.

◆ sendKeyUInput()

bool KeyInjector::sendKeyUInput ( int linux_keycode,
int value )
private

在文件 KeyInjector.cpp 第 262 行定义.

◆ sendKeyX11()

bool KeyInjector::sendKeyX11 ( Qt::Key key,
bool press )
private

在文件 KeyInjector.cpp 第 236 行定义.

◆ sendSuper()

bool KeyInjector::sendSuper ( )

在文件 KeyInjector.cpp 第 231 行定义.

类成员变量说明

◆ uinputFd

int KeyInjector::uinputFd = -1
private

在文件 KeyInjector.h 第 50 行定义.

◆ useUinput

bool KeyInjector::useUinput = false
private

在文件 KeyInjector.h 第 48 行定义.

◆ useX11

bool KeyInjector::useX11 = false
private

在文件 KeyInjector.h 第 47 行定义.

◆ x11Display

void* KeyInjector::x11Display = nullptr
private

在文件 KeyInjector.h 第 49 行定义.


该类的文档由以下文件生成: