X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=man%2Fcurs_mouse.3x;h=16bc45df2d20966a7570aed4396c959478faa2bf;hp=23f9f9c6d7d0ca8eb19587483a9b20c40af2cd45;hb=65ee0f2ca50c827bf271df7a087edd7da49f598d;hpb=412da50547b9612cc8e759c533fe256198ec2dd3;ds=sidebyside diff --git a/man/curs_mouse.3x b/man/curs_mouse.3x index 23f9f9c6..16bc45df 100644 --- a/man/curs_mouse.3x +++ b/man/curs_mouse.3x @@ -1,6 +1,6 @@ '\" t .\"*************************************************************************** -.\" Copyright (c) 1998-2005,2006 Free Software Foundation, Inc. * +.\" Copyright (c) 1998-2006,2008 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * .\" copy of this software and associated documentation files (the * @@ -27,11 +27,12 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_mouse.3x,v 1.30 2006/12/30 23:43:34 tom Exp $ +.\" $Id: curs_mouse.3x,v 1.31 2008/11/23 00:09:53 tom Exp $ .TH curs_mouse 3X "" .na .hy 0 .SH NAME +\fBhas_mouse\fR, \fBgetmouse\fR, \fBungetmouse\fR, \fBmousemask\fR, \fBwenclose\fR, \fBmouse_trafo\fR, \fBwmouse_trafo\fR, @@ -53,7 +54,9 @@ typedef struct MEVENT;\fR .fi .br -\fBint getmouse(MEVENT *event);\fR +\fBbool has_mouse(void);\fR +.br +-\fBint getmouse(MEVENT *event);\fR .br \fBint ungetmouse(MEVENT *event);\fR .br @@ -197,6 +200,9 @@ This function returns the previous interval value. Use \fBmouseinterval(-1)\fR to obtain the interval without altering it. The default is one sixth of a second. .PP +The \fBhas_mouse\fP function returns TRUE if the mouse driver has been +successfully initialized. +.PP Note that mouse events will be ignored when input is in cooked mode, and will cause an error beep when cooked mode is being simulated in a window by a function such as \fBgetstr\fR that expects a linefeed for input-loop