QtScrcpy
QtScrcpy copied to clipboard
建议:添加和scrcpy一样的鼠标侧键支持功能
现在在scrcpy-win64-v1.23版本里,我的鼠标的侧键被映射为 点击 APP_SWITCH功能. 我用起来觉得十分顺手,如有可能望支持.
void VideoForm::mousePressEvent(QMouseEvent *event)
{
auto device = qsc::IDeviceManage::getInstance().getDevice(m_serial);
if (event->button() == Qt::MiddleButton) {
if (device && !device->isCurrentCustomKeymap()) {
device->postGoHome();
return;
}
}
if (event->button() == Qt::RightButton) {
if (device && !device->isCurrentCustomKeymap()) {
device->postGoBack();
return;
}
}
//哈哈 没有环境,不知道怎么写
if (event->button() == 侧键) {
if (device && !device->isCurrentCustomKeymap()) {
device->postAppSwitch();
return;
}
}