en:ibm:prcp:mou:setevtmask

Differences

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

Link to this comparison view

en:ibm:prcp:mou:setevtmask [2016/02/04 07:14] – created valeriusen:ibm:prcp:mou:setevtmask [2016/09/15 04:29] (current) valerius
Line 1: Line 1:
 ==== MouSetEventMask ==== ==== MouSetEventMask ====
  
-**Bindings**: C, MASM +**Bindings**: [[setevtmask#bindings|C]][[setevtmask#MASM bindings|MASM]]
  
 This call assigns a new event mask to the current mouse device driver.  This call assigns a new event mask to the current mouse device driver. 
Line 40: Line 40:
  
 Setting a bit in the event mask means that the associated event is reported on the mouse FIFO event queue. See [[en:ibm:prcp:mou:readevtque|MouReadEventQue]] for examples of event mask use.  Setting a bit in the event mask means that the associated event is reported on the mouse FIFO event queue. See [[en:ibm:prcp:mou:readevtque|MouReadEventQue]] for examples of event mask use. 
 +
 +=== C bindings ===
 +
 +<code c>
 +#define INCL_MOU
 +
 +USHORT  rc = MouSetEventMask(EventMask, DeviceHandle);
 +
 +PUSHORT          EventMask;     /* Mouse device event mask ptr */
 +HMOU             DeviceHandle;  /* Mouse device handle */
 +
 +USHORT           rc;            /* return code */
 +</code>
 +
 +=== MASM bindings ===
 +
 +<code asm>
 +EXTRN  MouSetEventMask:FAR
 +INCL_MOU            EQU 1
 +
 +PUSH@  WORD    EventMask     ;Mouse device event mask ptr
 +PUSH   WORD    DeviceHandle  ;Mouse device handle
 +CALL   MouSetEventMask
 +
 +Returns WORD
 +</code>