cloud-game/web/js/input/keys.js
sergystepanov e05ae221e8
Add generic application statistics overlay (#168)
* Add stat module initial example

* Add stats module help overlay overlap handling

* Add generic graph canvas image builder

* Add more generic graphing module

* Clean up the code

* Some fixes

* Change graphing styles

* Clean some stats module code

* Move to RAF rendering to burn your CPU

* Add not standardized memory stats module

* Fix initial stats visibility flag handle
2020-04-26 22:19:00 +08:00

27 lines
522 B
JavaScript
Vendored

const KEY = (() => {
return {
A: 'a',
B: 'b',
X: 'x',
Y: 'y',
L: 'l',
R: 'r',
START: 'start',
SELECT: 'select',
LOAD: 'load',
SAVE: 'save',
HELP: 'help',
JOIN: 'join',
FULL: 'full',
QUIT: 'quit',
UP: 'up',
DOWN: 'down',
LEFT: 'left',
RIGHT: 'right',
PAD1: 'pad1',
PAD2: 'pad2',
PAD3: 'pad3',
PAD4: 'pad4',
STATS: 'stats',
}
})();