示例#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))))
}