mouse_on_screen man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

mouse_on_screen(3)		Allegro manual		    mouse_on_screen(3)

NAME
       mouse_on_screen	-  Tells you whether the mouse pointer is currently on
       screen. Allegro game programming library.

SYNOPSIS
       #include <allegro.h>

       int mouse_on_screen();

DESCRIPTION
       This function can be useful to prevent having two mouse pointers on the
       screen  at the same time when running your program in windowed mode and
       drawing the mouse pointer yourself. Other  possible  uses  include  the
       ability	to  pause  your game when the mouse goes off of the window, or
       only scrolling the view when the pointer is near the edge of  the  win‐
       dow, but not while off of the window.

       Example :

	  if (mouse_on_screen()) {draw_sprite(buffer , mouse_sprite , mouse_x , mouse_y);}

RETURN VALUE
       Returns 0 if the mouse pointer is off of the screen, or non-zero other‐
       wise.

Allegro				 version 4.4.2		    mouse_on_screen(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net