1
0
Fork 0
tetris-go/engine/input/keyboard.go

8 lines
172 B
Go

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