gabrielflorit / gabrielflorit/script-8.github.io

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

Open
#233 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
CSS
Stars
640
Forks
34
PR merge metrics
No merged PRs in 30d

Description

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' );
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.