MouseEventType Class Reference

[tvision Index] [tvision Hierarchy] [Headers]


Informations about mouse events More...

#include <system.h>

Public Members


Detailed Description

Stores mouse events.

This structure is used to give informations about mouse events.

See Also: TEvent, TEventQueue


TPoint where[public]

This is the position where the event happened.

ulong eventFlags[public]

Helps to specify the event.

This variable is set to meDoubleClick if a double-click event happened. If the mouse is simply moved its value is meMouseMoved. Otherwise its value is 0.

ulong controlKeyState[public]

Stores the status of the control keys when the event happened.

Its value may be a bitmap of the following bits:

kbLeftShift - left shift key was pressed

kbRightShift - right shift key was pressed

kbLeftCtrl - left control key was pressed

kbRightCtrl - right control key was pressed

kbLeftAlt - left alt key was pressed

kbRightAlt - right alt key was pressed

Its value is 0 if none of these keys where pressed. Warning: this information is not reliable. Its value depends on your operating system and libraries (gpm, ncurses). See `system.cc' for details.

uchar buttons[public]

This variable reports the status of the mouse buttons when the event happened.

It is a bitmap of the following values:

0x01 - mbLeftButton

0x02 - mbRightButton

Note: you can swap left and right buttons by setting TEventQueue::mouseReverse to True.

See Also:
TEventQueue

Documentation generated by sergio@athena.milk.it on Wed Feb 10 22:11:47 CET 1999
Kdoc