phaser
Version:
A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers.
17 lines (12 loc) • 358 B
JavaScript
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2018 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
var KeyCodes = require('./KeyCodes');
var KeyMap = {};
for (var key in KeyCodes)
{
KeyMap[KeyCodes[key]] = key;
}
module.exports = KeyMap;