Merge pull request #148 from xzebra/add-getcharpressed
add GetCharPressed
This commit is contained in:
commit
6acb55e3e6
1 changed files with 7 additions and 0 deletions
|
@ -647,6 +647,13 @@ func GetKeyPressed() int32 {
|
|||
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)
|
||||
func SetExitKey(key int32) {
|
||||
ckey := (C.int)(key)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue