gabrielflorit / gabrielflorit/script-8.github.io

Reassign key layout (e.g. from A-B to A-Z)

Aperta
#233 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
CSS
Stelle
640
Fork
34
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

In my opinion the usage of `A` , `B` , `SELECT `and `START` (as labels) is very appropriate considering structure of the classical controllers. However when using a regular keyboard as input interface, the distance between the keys 'A' and 'B' makes the experience very hard. Is almost impossible to achieve any natural mechanics.

What do you think about providing a way to re-map the default keys to a custom layout ?

Something like this l:
`inputMap( keyboardKeyID , controllerButtonID ) `
Generate a binding between the provided key, and one of the four available buttons.

```javascript
// Map any press on the key 83 ('S') to the key B
inputMap( 83 , 'B' );
// Map any press on the key 68 ('D') to the key SELECT
inputMap( 68 , 'SELECT' );
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia individuando la gestione dell’input da tastiera e le associazioni predefinite di A, B, SELECT e START descritte nell’issue. Determina come dovrebbe essere esposta e resa persistente un’associazione personalizzata tasto-pulsante, quindi verifica che i tasti rimappati attivino i pulsanti del controller previsti senza compromettere le associazioni predefinite.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript, react, redux
Ambito
frontend
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
38/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.