GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MOUSE_ON_SCREEN (3)

NAME

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

CONTENTS

Synopsis
Description

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 window, 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 otherwise.

Search for    or go to Top of page |  Section 3 |  Main Index


Allegro MOUSE_ON_SCREEN (3) version 4.4.2

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.