lingo3d
Version:
Lingo3D is a React/Vue 3d game development framework that ships with a complete visual editor
24 lines • 790 B
JavaScript
import { appendableDefaults, appendableSchema } from "./IAppendable";
import { extendDefaults } from "./utils/Defaults";
import { nullableCallback } from "./utils/NullableCallback";
export class LingoKeyboardEvent {
key;
keys;
constructor(key, keys) {
this.key = key;
this.keys = keys;
}
}
const lingoKeyboardEvent = new LingoKeyboardEvent("", new Set());
export const keyboardSchema = {
...appendableSchema,
onKeyPress: Function,
onKeyUp: Function,
onKeyDown: Function
};
export const keyboardDefaults = extendDefaults([appendableDefaults], {
onKeyPress: nullableCallback(lingoKeyboardEvent),
onKeyUp: nullableCallback(lingoKeyboardEvent),
onKeyDown: nullableCallback(lingoKeyboardEvent)
});
//# sourceMappingURL=IKeyboard.js.map