mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
typos fixed
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@66626 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
ceda18b1b0
commit
6ae20cd599
1 changed files with 6 additions and 11 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<reference id="ref.ncurses">
|
||||
<title>Ncurses terminal screen control functions</title>
|
||||
<titleabbrev>ncurses functions</titleabbrev>
|
||||
|
@ -2681,11 +2681,10 @@ if ($mask & $newmask){
|
|||
</funcsynopsis>
|
||||
&warn.experimental.func;
|
||||
<para>
|
||||
<function>ncurses_getmouse</function> reads mouse event a pop
|
||||
event out of queue. Function
|
||||
<function>ncurses_getmouse</function> will return ;&false; if a
|
||||
mouse event is actually visible in the given window, otherwise it
|
||||
will return &true;.
|
||||
<function>ncurses_getmouse</function> reads mouse event out of
|
||||
queue. Function <function>ncurses_getmouse</function> will return
|
||||
;&false; if a mouse event is actually visible in the given
|
||||
window, otherwise it will return &true;.
|
||||
Event options will be delivered in parameter
|
||||
<parameter>mevent</parameter>, which has to be an array, passed
|
||||
by reference (see example below).
|
||||
|
@ -2703,10 +2702,6 @@ if ($mask & $newmask){
|
|||
</itemizedlist>
|
||||
</para>
|
||||
<para>
|
||||
<function>ncurses_getmouse</function> returns &false; on
|
||||
success, otherwise &true;.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>ncurses_getmouse</function> example</title>
|
||||
<programlisting role="php">
|
||||
|
@ -2714,7 +2709,7 @@ if ($mask & $newmask){
|
|||
|
||||
switch (ncurses_getch){
|
||||
case NCURSES_KEY_MOUSE:
|
||||
if (!ncurses_getmouse($mevent)){
|
||||
if (!ncurses_getmouse(&$mevent)){
|
||||
if ($mevent["mmask"] & NCURSES_MOUSE_BUTTON1_PRESSED){
|
||||
$mouse_x = $mevent["x"]; // Save mouse position
|
||||
$mouse_y = $mevent["y"];
|
||||
|
|
Loading…
Reference in a new issue