Changeset 14802 in project


Ignore:
Timestamp:
05/27/09 05:34:06 (10 years ago)
Author:
Ivan Raikov
Message:

added information about event handling procedure to ezxdisp
documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/ezxdisp

    r14790 r14802  
    1111=== Author
    1212
    13 n-sibata and Morihiko Tamai, packaged for CHICKEN by [[/users/felix winkelmann|felix winkelmann]].
     13n-sibata and Morihiko Tamai, packaged for CHICKEN by [[/users/felix
     14winkelmann|felix winkelmann]].
    1415
    1516=== Requirements
     
    4647
    4748==== Get the pointer coordinates
    48 
    4949
    5050<procedure>(ezx-sensebutton EZX)</procedure>
     
    9797the X, Y and Z coordinates of each point.
    9898
     99==== Event handling
     100
     101<procedure>(ezx-next-event EZX)</procedure>
     102
     103Removes the next event from the event queue and returns the
     104event-specific information.  If there is no event data in the event
     105queue, this function blocks until the next event occurs. The procedure
     106returns the type of the event, followed by several event-specific
     107values. Depending on the type of the event, the following values can
     108be returned:
     109
     110; {{ezx:BUTTON_PRESS}} or {{ezx:BUTTON_RELEASE}}: the returned values are
     111  {{(TYPE X Y STATE BUTTON)}}
     112; {{ezx:KEY_PRESS}} or {{ezx:KEY_RELEASE}}: the returned values are
     113  {{(TYPE X Y STATE KEY)}}
     114; {{ezx:MOTION_NOTIFY}}: the returned values are
     115  {{(TYPE X Y STATE)}}
     116; {{ezx:CLOSE}}: the returned values are
     117  {{(TYPE)}}
     118
     119<procedure>(ezx-event-pending EZX)</procedure>
     120
     121Returns true if events are pending, false otherwise.
     122
    99123==== Miscellaneous functions
    100124
     
    102126
    103127Focuses on the layer.
    104 
    105128
    106129<procedure>(ezx-raise-window EZX)</procedure>
Note: See TracChangeset for help on using the changeset viewer.