mirror of
https://github.com/FlamedDogo99/EaglerMobile.git
synced 2024-11-24 21:16:05 -08:00
Added comments for keyEvent
This commit is contained in:
parent
4cfbd57fb0
commit
5a179285e5
|
@ -60,6 +60,10 @@ Event.prototype.preventDefault = function() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Key and mouse events
|
// Key and mouse events
|
||||||
|
// Note: the client must have the key, keyCode, and which parameters defined or it will crash
|
||||||
|
// Note: for text inputs, the client only reads from the "key" paramater
|
||||||
|
// * an exception to this appears to be the shift and backspace key
|
||||||
|
// Note: for inGame inputs, the client only reads from the "keyCode character"
|
||||||
function keyEvent(name, state) {
|
function keyEvent(name, state) {
|
||||||
const charCode = name.toKeyCode();
|
const charCode = name.toKeyCode();
|
||||||
let evt = new KeyboardEvent(state, {
|
let evt = new KeyboardEvent(state, {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user