From a240e88cdc37e71d54540090b63378c08f17a9d2 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 1 May 2007 14:11:59 +0000 Subject: STR #1639: improved documentation to explain the difference between evnt_button() and event_buttons() git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5786 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl.html | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'documentation/Fl.html') diff --git a/documentation/Fl.html b/documentation/Fl.html index 77ff43336..30bc498a0 100644 --- a/documentation/Fl.html +++ b/documentation/Fl.html @@ -593,26 +593,33 @@ prints the error message to stderr and returns.

int event_button1();

-

Returns non-zero if button 1 is pressed. +

Returns non-zero if button 1 is currently held down. +For more details, see Fl::event_buttons().

int event_button2();

-

Returns non-zero if button 2 is pressed. +

Returns non-zero if button 2 is currently held down. +For more details, see Fl::event_buttons().

int event_button3();

-

Returns non-zero if button 3 is pressed. +

Returns non-zero if button 3 is currently held down. +For more details, see Fl::event_buttons().

int event_button();

-

Returns which mouse button was pressed. This returns garbage if the +

Returns which mouse button caused te current event. This returns garbage if the most recent event was not a FL_PUSH or FL_RELEASE event.

int event_buttons();

Returns the button state bits; if non-zero, then at least one -button is pressed. +button is pressed. This function returns the button state at the +time of the event. During an FL_RELEASE event, the state +of the released button will be 0. To find out, which button +caused an FL_RELEASE event, you can use +Fl::event_button() instead.

int event_clicks();
void event_clicks(int i);

-- cgit v1.2.3