示例#1
0
func GetKeyboardEventSource() *EventSource {
	var es *C.ALLEGRO_EVENT_SOURCE

	es = C.al_get_keyboard_event_source()

	return createEventSource(es)
}
示例#2
0
文件: keyboard.go 项目: beoran/algo
// Returns the Keyboard event source that can be registered to an EventQueue
// with RegisterEventSource.
func GetKeyboardEventSource() *EventSource {
	return (*EventSource)(C.al_get_keyboard_event_source())
}
示例#3
0
func GetKeyboardEventSource() *EventSource {
	return (*EventSource)(unsafe.Pointer(C.al_get_keyboard_event_source()))
}