Skip to content

Implemented Keyboard.AddKeys function.#1857

Merged
photonstorm merged 4 commits intophaserjs:devfrom
Mourtz:master
Jul 2, 2015
Merged

Implemented Keyboard.AddKeys function.#1857
photonstorm merged 4 commits intophaserjs:devfrom
Mourtz:master

Conversation

@Mourtz
Copy link
Contributor

@Mourtz Mourtz commented Jun 15, 2015

Similar to createCursorKeys function but with user defined hotkeys and keycodes.T

photonstorm added a commit that referenced this pull request Jul 2, 2015
Implemented Keyboard.AddKeys function.
@photonstorm photonstorm merged commit 755a247 into phaserjs:dev Jul 2, 2015
@photonstorm
Copy link
Collaborator

Nice, thanks :)

photonstorm added a commit that referenced this pull request Jul 2, 2015
…er selected hotkeys. For example: `addKeys( [Phaser.Keyboard.W, Phaser.Keyboard.S, Phaser.Keyboard.A, Phaser.Keyboard.D], [ 'up', 'down', 'left', 'right' ] );` would return an object containing the properties `up`, `down`, `left` and `right` that you could poll just like a Phaser.Key object. (thanks @Mourtz #1857)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants