1
0
Fork 0

feat(input): add KeyPressedWithRepeat()

This commit is contained in:
Henrik Hautakoski 2025-10-27 20:13:44 +01:00
parent 678670fd37
commit 3d3e8d7a44

8
engine/input/keyboard.go Normal file
View file

@ -0,0 +1,8 @@
package input
import rl "github.com/gen2brain/raylib-go/raylib"
func KeyPressedWithRepeat(key int32) bool {
return rl.IsKeyPressed(key) || rl.IsKeyPressedRepeat(key)
}