Skip to content

Commit

Permalink
game menu: add send key flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Karim Mreisi committed Mar 12, 2023
1 parent d30bc0a commit b5d0550
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/limelight/GameMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private void sendKeys(short[] keys) {
final byte[] modifier = {(byte) 0};

for (short key : keys) {
conn.sendKeyboardInput(key, KeyboardPacket.KEY_DOWN, modifier[0]);
conn.sendKeyboardInput(key, KeyboardPacket.KEY_DOWN, modifier[0], (byte) 0);

// Apply the modifier of the pressed key, e.g. CTRL first issues a CTRL event (without
// modifier) and then sends the following keys with the CTRL modifier applied
Expand All @@ -80,7 +80,7 @@ private void sendKeys(short[] keys) {
// Remove the keys modifier before releasing the key
modifier[0] &= ~getModifier(key);

conn.sendKeyboardInput(key, KeyboardPacket.KEY_UP, modifier[0]);
conn.sendKeyboardInput(key, KeyboardPacket.KEY_UP, modifier[0], (byte) 0);
}
}), KEY_UP_DELAY);
}
Expand Down

0 comments on commit b5d0550

Please sign in to comment.