add GetCharPressed

This commit is contained in:
xzebra 2021-09-05 18:41:27 +03:00
parent 1ca7b58c82
commit 0d93bf5aa4
No known key found for this signature in database
GPG key ID: 6C835ADAF247138C

View file

@ -647,6 +647,13 @@ func GetKeyPressed() int32 {
return v return v
} }
// GetCharPressed - Get the last char pressed
func GetCharPressed() int32 {
ret := C.GetCharPressed()
v := (int32)(ret)
return v
}
// SetExitKey - Set a custom key to exit program (default is ESC) // SetExitKey - Set a custom key to exit program (default is ESC)
func SetExitKey(key int32) { func SetExitKey(key int32) {
ckey := (C.int)(key) ckey := (C.int)(key)