emit mapped keys from input-component

This commit is contained in:
Shin'ya Ueoka 2017-10-21 11:06:58 +09:00
parent c2a663a64d
commit 214a5103f3
6 changed files with 95 additions and 21 deletions

View file

@ -9,8 +9,8 @@ export default class KeymapperComponent {
update() {
}
key(key, ctrl) {
this.store.dispatch(inputActions.keyPress(key, ctrl));
key(key) {
this.store.dispatch(inputActions.keyPress(key));
let input = this.store.getState().input;
let matched = Object.keys(input.keymaps).filter((keyStr) => {