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

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

作者:gnanderso    项目:Go-SD   
// Sets the state of modifier keys
func SetModState(modstate Mod) { C.SDL_SetModState(C.SDLMod(modstate)) }

作者:kearsle    项目:Go-SD   
// Sets the state of modifier keys
func SetModState(modstate Mod) {
	GlobalMutex.Lock()
	C.SDL_SetModState(C.SDLMod(modstate))
	GlobalMutex.Unlock()
}

作者:beora    项目:fung   
// Set the current key modifier state
// This does not change the keyboard state, only the key modifier flags.
func SetModState(state int) {
	C.SDL_SetModState(C.SDLMod(state))
}


问题


面经


文章

微信
公众号

扫码关注公众号