Merge pull request #148 from xzebra/add-getcharpressed

add GetCharPressed
This commit is contained in:
Milan Nikolic 2021-09-05 18:16:06 +02:00 committed by GitHub
commit 6acb55e3e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)