feat(input): add KeyPressedWithRepeat()
This commit is contained in:
parent
678670fd37
commit
3d3e8d7a44
1 changed files with 8 additions and 0 deletions
8
engine/input/keyboard.go
Normal file
8
engine/input/keyboard.go
Normal 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)
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue