AOSSIE-Org / AOSSIE-Org/Rein

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

Abierto
#402 1 comentario 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
TypeScript
Estrellas
38
Forks
78
Merge medio
4 d 4 h
PR fusionados (30 d)
7

Descripción

### 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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.