Golang C.SDLKey类(方法)实例源码

下面列出了Golang C.SDLKey 类(方法)源码代码实例,从而了解它的用法。

作者:kearsle    项目:Go-SD   
// Gets the name of an SDL virtual keysym
func GetKeyName(key Key) string {
	GlobalMutex.Lock()
	name := C.GoString(C.SDL_GetKeyName(C.SDLKey(key)))
	GlobalMutex.Unlock()
	return name
}

作者:gnanderso    项目:Go-SD   
// Gets the name of an SDL virtual keysym
func GetKeyName(key Key) string { return C.GoString(C.SDL_GetKeyName(C.SDLKey(key))) }


问题


面经


文章

微信
公众号

扫码关注公众号