Add a bunch of TODOs
This commit is contained in:
@ -115,6 +115,10 @@ export const shiftKeyDown = () => {
|
||||
return keyDown(K.SHIFT_LEFT) || keyDown(K.SHIFT_RIGHT);
|
||||
}
|
||||
|
||||
export const ctrlKeyDown = () => {
|
||||
return keyDown(K.CTRL_LEFT) || keyDown(K.CTRL_RIGHT);
|
||||
}
|
||||
|
||||
export const keyReleased = (key: string | number) => {
|
||||
if (typeof key === "string") {
|
||||
key = key.toUpperCase().charCodeAt(0);
|
||||
@ -131,6 +135,9 @@ export const getKeysPressed = () => {
|
||||
|
||||
export const getKeyboardString = () => {
|
||||
let str = "";
|
||||
if (ctrlKeyDown()) {
|
||||
return str;
|
||||
}
|
||||
for (const key of getKeysPressed()) {
|
||||
let char = String.fromCharCode(key).toLowerCase();
|
||||
if (shiftKeyDown()) {
|
||||
|
Reference in New Issue
Block a user