Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:docs:fapi:mougetnummickeys [2021/10/06 13:20] – created prokushev | en:docs:fapi:mougetnummickeys [2021/11/04 13:15] (current) – prokushev | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | This call returns the number of buttons supported on the installed mouse driver. | + | {{page> | 
| - | ==Syntax== | + | ====== MouGetNumMickeys ====== | 
| - |   | + | |
| - | ==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== | + | This call returns the number of mickeys in each centimeter for the installed mouse driver. | 
| - | ;rc (USHORT) - return: | + | |
| - | *385 ERROR_MOUSE_NO_DEVICE | + | |
| - | *466 ERROR_MOU_DETACHED | + | |
| - | *501 ERROR_MOUSE_NO_CONSOLE | + | |
| - | *505 ERROR_MOU_EXTENDED_SG | + | |
| - | ==Bindings== | + | ===== Syntax ===== | 
| - | ===C=== | + | <code c> | 
| - | <PRE> | + |   | 
| + | </ | ||
| + | |||
| + | ===== Parameters ===== | ||
| + | |||
| + | * NumberOfMickeys (PUSHORT) - output : Address of the number of physical mouse motion units. Mouse motion units are reported in mickeys in each centimeter. This value is constant based upon the mouse device attached. | ||
| + | * DeviceHandle (HMOU) - input : Handle of the mouse device from a previous MouOpen. | ||
| + | |||
| + | ===== Return Code ===== | ||
| + | |||
| + | rc (USHORT) - return: | ||
| + | |||
| + | *0 NO_ERROR | ||
| + | *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 | ||
| - | USHORT  | + | USHORT  | 
| - | PUSHORT  | + | PUSHORT  | 
| - | HMOU    DeviceHandle;  | + | HMOU    DeviceHandle;  | 
| - | USHORT  | + | USHORT  | 
| - | </PRE> | + | </code> | 
| - | ===MASM=== | + | ====MASM==== | 
| - | <PRE> | + | <code asm> | 
| - | EXTRN   | + | EXTRN   | 
| INCL_MOU  | INCL_MOU  | ||
| - | PUSH@  WORD     | + | PUSH@  WORD     | 
| PUSH    | PUSH    | ||
| - | CALL MouGetNumButtons | + | CALL MouGetNumMickeys | 
| Returns WORD | Returns WORD | ||
| - | </ | ||
| - | |||
| - | ==Example== | ||
| - | < | ||
| - |  HMOU DeviceHandle; | ||
| - | ... | ||
| - |   | ||
| - |   | ||
| </ | </ | ||
| - | [[Category:Mou]] | + | {{page> | 




