Jump to content

MOUEVENTINFO: Difference between revisions

From EDM2
Anakor (talk | contribs)
New
 
Ak120 (talk | contribs)
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== MOUEVENTINFO ==
Mouse event queue data structure.


Mouse event queue data structure.
=== Type ===
 
  [[ULONG]]  fs
=== Type ===  
  [[LONG]]  row
 
  LONG  col
  [[OS2 API:DataType:ULONG|ULONG]]  fs
  ULONG  time
  [[OS2 API:DataType:LONG|LONG]]  row
  [[OS2 API:DataType:LONG|LONG]]   col
  [[OS2 API:DataType:ULONG|ULONG]] time


==== C Declaration Method ====
==== C Declaration Method ====
typedef struct
typedef struct


=== Fields ===
=== Fields ===
 
;fs:Mouse state.
fs   Mouse state.
:The state of the mouse at the time of the event.
      The state of the mouse at the time of the event.
::{|class="wikitable"
      Bit   Description  
!Bit||Description
      31-7 Reserved; set to zero.  
|-
      6     Set if button 3 is down.  
|31-7||Reserved; set to zero.
      5     Set if mouse is moving and button 3 is down.  
|-
      4     Set if button 2 is down.  
|6||Set if button 3 is down.
      3     Set if mouse is moving and button 2 is down.  
|-
      2     Set if button 1 is down.  
|5||Set if mouse is moving and button 3 is down.
      1     Set if mouse is moving and button 1 is down.  
|-
      0     Set if mouse is moving and no buttons are down.
|4||Set if button 2 is down.
 
|-
row   Horizontal position.
|3||Set if mouse is moving and button 2 is down.
      The absolute or relative row position.
|-
 
|2||Set if button 1 is down.
col   Vertical position.
|-
      The absolute or relative column position.
|1||Set if mouse is moving and button 1 is down.
|-
|0||Set if mouse is moving and no buttons are down.
|}
;row:Horizontal position.
:The absolute or relative row position.
;col:Vertical position.
:The absolute or relative column position.
;time:Time stamp.


time  Timestamp.
[[Category:Data type]]
      Time stamp.

Latest revision as of 18:57, 11 December 2019

Mouse event queue data structure.

Type

ULONG  fs
LONG   row
LONG   col
ULONG  time

C Declaration Method

typedef struct

Fields

fs
Mouse state.
The state of the mouse at the time of the event.
Bit Description
31-7 Reserved; set to zero.
6 Set if button 3 is down.
5 Set if mouse is moving and button 3 is down.
4 Set if button 2 is down.
3 Set if mouse is moving and button 2 is down.
2 Set if button 1 is down.
1 Set if mouse is moving and button 1 is down.
0 Set if mouse is moving and no buttons are down.
row
Horizontal position.
The absolute or relative row position.
col
Vertical position.
The absolute or relative column position.
time
Time stamp.