en:docs:fapi:mougetnumbuttons

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
en:docs:fapi:mougetnumbuttons [2021/10/14 09:29] – created prokusheven:docs:fapi:mougetnumbuttons [2021/11/04 13:15] (current) prokushev
Line 1: Line 1:
 +{{page>en:templates:fapiint}}
 +
 +====== 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>
  MouGetNumButtons (NumberOfButtons, DeviceHandle)  MouGetNumButtons (NumberOfButtons, DeviceHandle)
 +</code>
  
-==Parameters== +===== Parameters =====
-;NumberOfButtons (PUSHORT) - output : Address of the number of physical buttons. The return values for the number of buttons supported are: +
-::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 (PUSHORT) - output Address of the number of physical buttons. The return values for the number of buttons supported are: 
-;rc (USHORT) - return:Return code descriptions are: +    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:Return code descriptions are: 
 + 
 +  *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  rc;               /* return code */ USHORT  rc;               /* return code */
-</PRE>+</code>
  
-===MASM=== +====MASM==== 
-<PRE>+<code asm>
 EXTRN  MouGetNumButtons:FAR EXTRN  MouGetNumButtons:FAR
 INCL_MOU            EQU 1 INCL_MOU            EQU 1
Line 41: Line 51:
  
 Returns WORD Returns WORD
-</PRE>+</code> 
 + 
 +===== Example =====
  
-==Example== +<code c>
-<code>+
  HMOU DeviceHandle;  HMOU DeviceHandle;
  ...  ...
Line 51: Line 62:
 </code> </code>
  
-[[Category:Mou]]+{{page>en:templates:fapi}}