Пример #1
0
func (d *Display) GrabCursor(grab bool) {
	if grab {

		C.al_grab_mouse((*C.ALLEGRO_DISPLAY)(d))

	} else {

		C.al_ungrab_mouse()

	}
}
Пример #2
0
func GrabMouse(display *Display) bool {
	return bool(C.al_grab_mouse((*C.ALLEGRO_DISPLAY)(unsafe.Pointer(display))))
}