Skip to content

Update computer keyboard controller to use key codes#7

Merged
bgins merged 6 commits intodevfrom
feature/add-keycodes
Dec 28, 2020
Merged

Update computer keyboard controller to use key codes#7
bgins merged 6 commits intodevfrom
feature/add-keycodes

Conversation

@bgins
Copy link
Copy Markdown
Owner

@bgins bgins commented Dec 28, 2020

This PR updates the computer keyboard controller to use key codes (https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code). The change maps notes to the physical key on the keyboard instead of character values. This adds support for non-QWERTY keyboard layouts.

bgins and others added 6 commits November 27, 2020 09:25
Add a new computer keyboard handler to play notes based on key codes. This
adds support for non-QWERTY keyboard layouts.
We may get stop note calls from a computer keyboard controller if a user
presses a modifier key, presses a playable key while holding the modifier key,
releases the modifier key, and finally releases the playable key. We might be
able to handle this in the controller code, but this option is simpler and
works for now.
@bgins bgins added the enhancement New feature or request label Dec 28, 2020
@bgins bgins merged commit a743cc8 into dev Dec 28, 2020
@bgins bgins deleted the feature/add-keycodes branch December 28, 2020 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant