AOSSIE-Org / AOSSIE-Org/Rein

[Bug]: Keyboard input injection does not work in games

Offen
#402 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
TypeScript
Sterne
38
Forks
78
Ø Merge
4 T. 4 Std.
Gemergte PRs (30 T.)
7

Beschreibung

### Bug Description

Keyboard input injected through the client works correctly for regular text input and browser-based applications, controls are not recognized by games. The current implementation uses KEYEVENTF_UNICODE with the character code as wScan. This appears to provide text input rather than the physical/scancode keyboard events expected by many games.

As a result, keys such as W, A, S, and D cannot reliably be used for movement in games through Rein's remote keyboard input.

### Steps to Reproduce

1. Start the Rein server and connect using the client.
2. Open a game that uses WASD for movement.
3. Use the client's keyboard input to send W, A, S, or D.
4. Observe that the game does not respond to the injected keys.
5. Test the same input in a browser or text field and observe that the characters are entered correctly.

### Expected Behavior

Injected keyboard input should be recognized by games as actual keyboard key-down and key-up events.

### Desktop Operating System

Windows 11

### Client OS and browser

Brave

### Rein Version

0.5.0

### Console Logs / Error Messages (Optional)

```shell
nil
```

### Screenshots / Recordings (Optional)

nil

### Checklist

- [x] I have searched for existing issues to avoid duplicates

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.