mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-20 11:35:56 +00:00
fix: keymap init bug
This commit is contained in:
parent
714eae1ac5
commit
ea6970d5f4
1 changed files with 7 additions and 0 deletions
|
@ -211,6 +211,13 @@ void KeyMap::loadKeyMap(const QString &json)
|
|||
|
||||
KeyMapNode keyMapNode;
|
||||
keyMapNode.type = type;
|
||||
keyMapNode.steerWheel.leftKeyPressed = false;
|
||||
keyMapNode.steerWheel.rightKeyPressed = false;
|
||||
keyMapNode.steerWheel.upKeyPressed = false;
|
||||
keyMapNode.steerWheel.downKeyPressed = false;
|
||||
keyMapNode.steerWheel.pressKeysNum = 0;
|
||||
keyMapNode.steerWheel.firstPressKey = 0;
|
||||
|
||||
if (leftKey != -1) {
|
||||
keyMapNode.steerWheel.leftKey = leftKey;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue