Пример #1
0
func GetMouseState() MouseState {
	var ms MouseState

	C.al_get_mouse_state((*C.ALLEGRO_MOUSE_STATE)(&ms))

	return ms
}
Пример #2
0
func GetMouseState() *MouseState {
	ms := new(C.ALLEGRO_MOUSE_STATE)
	C.al_get_mouse_state(ms)
	return (*MouseState)(unsafe.Pointer(ms))
}