示例#1
0
文件: events.go 项目: flazz/go-sdl2
func GetEventState(type_ uint32) uint8 {
	return uint8(C.SDL_EventState(C.Uint32(type_), QUERY))
}
示例#2
0
文件: events.go 项目: flazz/go-sdl2
// EventState (https://wiki.libsdl.org/SDL_EventState)
func EventState(type_ uint32, state int) uint8 {
	return uint8(C.SDL_EventState(C.Uint32(type_), C.int(state)))
}
示例#3
0
func EventState(type_ uint32, state int) uint8 {
	_type := (C.Uint32)(type_)
	_state := (C.int)(state)
	return (uint8)(C.SDL_EventState(_type, _state))
}
示例#4
0
func GetEventState(type_ uint32) uint8 {
	_type := (C.Uint32)(type_)
	return (uint8)(C.SDL_EventState(_type, QUERY))
}
示例#5
0
文件: events.go 项目: willemvds/sdl
func EventState(t uint32, s int) uint8 {
	return uint8(C.SDL_EventState(C.Uint32(t), C.int(s)))
}