From 7c525b00fad8f7b3385754fb5156c0466b5981f9 Mon Sep 17 00:00:00 2001 From: Jonan Scheffler Date: Tue, 7 Aug 2018 14:25:48 -0700 Subject: [PATCH] Correct Konami code in createCombo documentation. --- src/input/keyboard/KeyboardPlugin.js | 4 ++-- src/input/keyboard/combo/KeyCombo.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/input/keyboard/KeyboardPlugin.js b/src/input/keyboard/KeyboardPlugin.js index 9813ee52c..c38cb9d52 100644 --- a/src/input/keyboard/KeyboardPlugin.js +++ b/src/input/keyboard/KeyboardPlugin.js @@ -450,11 +450,11 @@ var KeyboardPlugin = new Class({ * An array of either integers (key codes) or strings, or a mixture of both * An array of objects (such as Key objects) with a public 'keyCode' property * - * For example, to listen for the Konami code (up, up, up, down, down, down, left, left, left, right, right, right) + * For example, to listen for the Konami code (up, up, down, down, left, right, left, right, b, a, enter) * you could pass the following array of key codes: * * ```javascript - * this.input.keyboard.createCombo([ 38, 38, 38, 40, 40, 40, 37, 37, 37, 39, 39, 39 ], { resetOnMatch: true }); + * this.input.keyboard.createCombo([ 38, 38, 40, 40, 37, 39, 37, 39, 66, 65, 13 ], { resetOnMatch: true }); * * this.input.keyboard.on('keycombomatch', function (event) { * console.log('Konami Code entered!'); diff --git a/src/input/keyboard/combo/KeyCombo.js b/src/input/keyboard/combo/KeyCombo.js index ea09a9ac5..398aef50d 100644 --- a/src/input/keyboard/combo/KeyCombo.js +++ b/src/input/keyboard/combo/KeyCombo.js @@ -35,11 +35,11 @@ var ResetKeyCombo = require('./ResetKeyCombo'); * An array of either integers (key codes) or strings, or a mixture of both * An array of objects (such as Key objects) with a public 'keyCode' property * - * For example, to listen for the Konami code (up, up, up, down, down, down, left, left, left, right, right, right) + * For example, to listen for the Konami code (up, up, down, down, left, right, left, right, b, a, enter) * you could pass the following array of key codes: * * ```javascript - * this.input.keyboard.createCombo([ 38, 38, 38, 40, 40, 40, 37, 37, 37, 39, 39, 39 ], { resetOnMatch: true }); + * this.input.keyboard.createCombo([ 38, 38, 40, 40, 37, 39, 37, 39, 66, 65, 13 ], { resetOnMatch: true }); * * this.input.keyboard.on('keycombomatch', function (event) { * console.log('Konami Code entered!');