Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:docs:fapi:mougetnumbuttons [2021/10/14 09:29] – created prokushev | en:docs:fapi:mougetnumbuttons [2021/11/04 13:15] (current) – prokushev | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | {{page> | ||
+ | |||
+ | ====== MouGetNumButtons ====== | ||
+ | |||
This call returns the number of buttons supported on the installed mouse driver. | This call returns the number of buttons supported on the installed mouse driver. | ||
- | ==Syntax== | + | ===== Syntax ===== |
+ | <code c> | ||
| | ||
+ | </ | ||
- | ==Parameters== | + | ===== Parameters ===== |
- | ; | + | |
- | ::1 - One mouse button | + | |
- | ::2 - Two mouse buttons | + | |
- | ::3 - Three mouse buttons. | + | |
- | ; DeviceHandle (HMOU) - input : Handle of the mouse device from a previous MouOpen. | + | |
- | ==Return Code== | + | * NumberOfButtons |
- | ;rc (USHORT) - return:Return code descriptions | + | * 1 - One mouse button |
- | *385 ERROR_MOUSE_NO_DEVICE | + | * 2 - Two mouse buttons |
- | *466 ERROR_MOU_DETACHED | + | * 3 - Three mouse buttons. |
- | *501 ERROR_MOUSE_NO_CONSOLE | + | * DeviceHandle (HMOU) - input : Handle of the mouse device from a previous MouOpen. |
- | *505 ERROR_MOU_EXTENDED_SG | + | |
- | ==Bindings== | + | ===== Return Code ===== |
- | ===C=== | + | |
- | <PRE> | + | rc (USHORT) - return: |
+ | |||
+ | *385 ERROR_MOUSE_NO_DEVICE | ||
+ | *466 ERROR_MOU_DETACHED | ||
+ | *501 ERROR_MOUSE_NO_CONSOLE | ||
+ | *505 ERROR_MOU_EXTENDED_SG | ||
+ | |||
+ | ===== Bindings | ||
+ | |||
+ | ====C==== | ||
+ | <code c> | ||
#define INCL_MOU | #define INCL_MOU | ||
Line 29: | Line 39: | ||
USHORT | USHORT | ||
- | </PRE> | + | </code> |
- | ===MASM=== | + | ====MASM==== |
- | <PRE> | + | <code asm> |
EXTRN MouGetNumButtons: | EXTRN MouGetNumButtons: | ||
INCL_MOU | INCL_MOU | ||
Line 41: | Line 51: | ||
Returns WORD | Returns WORD | ||
- | </PRE> | + | </code> |
+ | |||
+ | ===== Example ===== | ||
- | ==Example== | + | < |
- | < | + | |
HMOU DeviceHandle; | HMOU DeviceHandle; | ||
... | ... | ||
Line 51: | Line 62: | ||
</ | </ | ||
- | [[Category:Mou]] | + | {{page> |