|
|
ru.unix.bsd- RU.UNIX.BSD ------------------------------------------------------------------ From : Eugene Grosbein 2:5006/1 04 Nov 2005 18:34:34 To : All Subject : mouse(4) --------------------------------------------------------------------------------
man 4 mouse в секции IOCTL говорит, в частности:
MOUSE_GETSTATUS mousestatus_t *status
The command returns the current state of buttons and movement
counts in the following structure.
typedef struct mousestatus {
int flags; /* state change flags */
int button; /* button status */
int obutton; /* previous button status */
int dx; /* x movement */
int dy; /* y movement */
int dz; /* z movement */
} mousestatus_t;
The button and obutton fields hold the current and the previous
state of the mouse buttons. When a button is pressed, the corre-
sponding bit is set. The mouse drivers may support up to 31 but-
tons with the bit 0 through 31.
То есть, поле buttons содержит флаги состояний кнопок мыши (нажато/не нажато),
всего драйвер конкретной мыши может поддерживать количество кнопок
до... скольки? До 31? Или все таки with the bit 0 through 31, то есть
до 32 кнопок?
Eugene
--
For the Colonel's Lady an' Judy O'Grady
Are sisters under their skins!
--- slrn/0.9.8.0 (FreeBSD)
* Origin: Svyaz Service JSC (2:5006/1@fidonet)
Вернуться к списку тем, сортированных по: возрастание даты уменьшение даты тема автор
Архивное /ru.unix.bsd/260931ce58e22.html, оценка из 5, голосов 10
|