Add new core and audio functions
This commit is contained in:
parent
1ffd9fb3ca
commit
c0b171213e
3 changed files with 31 additions and 1 deletions
|
@ -197,6 +197,13 @@ func SetWindowMinSize(w, h int) {
|
|||
C.SetWindowMinSize(cw, ch)
|
||||
}
|
||||
|
||||
// SetWindowMaxSize - Set window maximum dimensions (for FLAG_WINDOW_RESIZABLE)
|
||||
func SetWindowMaxSize(w, h int) {
|
||||
cw := (C.int)(w)
|
||||
ch := (C.int)(h)
|
||||
C.SetWindowMaxSize(cw, ch)
|
||||
}
|
||||
|
||||
// SetWindowSize - Set window dimensions
|
||||
func SetWindowSize(w, h int) {
|
||||
cw := (C.int)(w)
|
||||
|
@ -691,6 +698,14 @@ func IsKeyPressed(key int32) bool {
|
|||
return v
|
||||
}
|
||||
|
||||
// IsKeyPressedRepeat - Detect if a key has been pressed again (Only PLATFORM_DESKTOP)
|
||||
func IsKeyPressedRepeat(key int32) bool {
|
||||
ckey := (C.int)(key)
|
||||
ret := C.IsKeyPressedRepeat(ckey)
|
||||
v := bool(ret)
|
||||
return v
|
||||
}
|
||||
|
||||
// IsKeyDown - Detect if a key is being pressed
|
||||
func IsKeyDown(key int32) bool {
|
||||
ckey := (C.int)(key)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue