diff --git a/raylib.js b/raylib.js index a6a0154..91b98a1 100644 --- a/raylib.js +++ b/raylib.js @@ -187,9 +187,23 @@ class RaylibJs { IsKeyPressed(key) { return !this.prevPressedKeyState.has(key) && this.currentPressedKeyState.has(key); } + + IsKeyPressedRepeat(key) { + return false; + } + IsKeyDown(key) { return this.currentPressedKeyState.has(key); } + + IsKeyReleased(key) { + return this.prevPressedKeyState.has(key) && !this.currentPressedKeyState.has(key); + } + + IsKeyUp(key) { + return !this.currentPressedKeyState.has(key); + } + GetMouseWheelMove() { return this.currentMouseWheelMoveState; }