Differences
This shows you the differences between two versions of the page.
en:ibm:prcp:mou:setscalefact [2016/02/04 07:35] – created valerius | en:ibm:prcp:mou:setscalefact [2016/09/15 04:50] (current) – valerius | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== MouSetScaleFact ==== | ==== MouSetScaleFact ==== | ||
- | **Bindings**: | + | **Bindings**: |
This call assigns to the current mouse device driver a new pair of 1-word scaling factors. | This call assigns to the current mouse device driver a new pair of 1-word scaling factors. | ||
Line 34: | Line 34: | ||
The number of pixels moved does not have to correspond 1-to-1 with the number of mickeys the mouse moves. The scaling factor defines a sensitivity for the mouse that is a ratio of the number of mickeys required to move the cursor 8 pixels on the screen. The sensitivity determines at what rate the cursor moves on the screen. | The number of pixels moved does not have to correspond 1-to-1 with the number of mickeys the mouse moves. The scaling factor defines a sensitivity for the mouse that is a ratio of the number of mickeys required to move the cursor 8 pixels on the screen. The sensitivity determines at what rate the cursor moves on the screen. | ||
+ | |||
+ | === C bindings === | ||
+ | |||
+ | <code c> | ||
+ | typedef struct _SCALEFACT { /* mousc */ | ||
+ | USHORT rowScale; | ||
+ | USHORT colScale; | ||
+ | } SCALEFACT; | ||
+ | |||
+ | #define INCL_MOU | ||
+ | |||
+ | USHORT | ||
+ | |||
+ | PSCALEFACT | ||
+ | HMOU | ||
+ | |||
+ | USHORT | ||
+ | </ | ||
+ | |||
+ | === MASM bindings === | ||
+ | |||
+ | <code asm> | ||
+ | SCALEFACT struc | ||
+ | mousc_rowScale | ||
+ | mousc_colScale | ||
+ | SCALEFACT ends | ||
+ | |||
+ | EXTRN MouSetScaleFact: | ||
+ | INCL_MOU | ||
+ | |||
+ | PUSH@ OTHER | ||
+ | PUSH | ||
+ | CALL | ||
+ | |||
+ | Returns WORD | ||
+ | </ | ||