Event.h
and SysEvtMgr.h
.
void EvtAddEventToQueue (const EventType *event)
void EvtAddUniqueEventToQueue (const EventType *eventP, UInt32 id, Boolean inPlace)
  |
|
Pointer to the structure that contains the event |
  |
|
ID of the event. 0 means match only on the type. |
  |
|
If true , existing event are replaced. If false , existing event is deleted and new event added to end of queue. |
void EvtCopyEvent (const EventType *source, EventType *dest)
  |
|
Pointer to the structure containing the event to copy. |
  |
|
Pointer to the structure to copy the event to. |
Err EvtDequeuePenPoint (PointType* retP)
EvtDequeuePenStrokeInfo
Err EvtDequeuePenStrokeInfo (PointType* startPtP, PointType* endPtP)
EvtGetSysEvent
when a penUp
event is being generated. This routine must be called before EvtDequeuePenPoint is called.
void EvtEnableGraffiti (Boolean enable)
Err EvtEnqueueKey (WChar ascii, UInt16 keycode, UInt16 modifiers)
  |
|
ASCII code of key. |
  |
|
Virtual key code of key. |
  |
|
Modifiers for key event. |
evtErrParamErr
if an error occurs.
true
if an event is available.
Boolean EvtEventAvail (void)
true
if an event is available, false
otherwise.
Err EvtFlushKeyQueue (void)
EvtSetPenQueuePtr
.
Err EvtFlushNextPenStroke (void)
EvtDequeuePenStrokeInfo
) this routine finishes the stroke dequeueing. Otherwise, this routine flushes the next stroke in the queue.
EvtDequeuePenPoint
Err EvtFlushPenQueue (void)
EvtSetKeyQueuePtr
.
EvtPenQueueSize
void EvtGetEvent (EventType *event, Int32 timeout)
  |
|
Pointer to the structure to hold the event returned. |
  |
|
Maximum number of ticks to wait before an event is returned (-1 means wait indefinitely). |
timeout
= -1 in most instances. When running on the device, this makes the CPU go into doze mode until the user provides input. For applications that do animation, pass timeout
>= 0.
void EvtGetPen (Int16 *pScreenX, Int16 *pScreenY, Boolean *pPenDown)
  |
|
x location relative to display. |
  |
|
y location relative to display. |
  |
|
true or false . |
KeyCurrentState
const PenBtnInfoType* EvtGetPenBtnList (UInt16* numButtons)
EvtProcessSoftKeyStroke
*const SilkscreenAreaType* EvtGetSilkscreenAreaList(UInt16* numAreas)
eventP
is a pointer to a virtual character key down event.
#define EvtKeydownIsVirtual(eventP)
(((eventP)->data.keyDown.modifiers & virtualKeyMask) != 0)
true
if the character is a letter in an alphabet or a numeric digit, false
otherwise.
TxtGlueCharIsVirtual
in the PalmOSGlue Library.
TxtGlueCharIsVirtual
true
if the key queue is currently empty.
Boolean EvtKeyQueueEmpty (void)
true
if the key queue is currently empty, otherwise returns false
.
UInt32 EvtKeyQueueSize (void)
UInt32 EvtPenQueueSize (void)
Err EvtProcessSoftKeyStroke(PointType* startPtP, PointType* endPtP)
EvtGetPenBtnList
,
GrfProcessStroke
Err EvtResetAutoOffTimer (void)
EvtResetAutoOffTimer
just resets the timer, while EvtSetAutoOffTimer
allows you to specify a time.
SysSetAutoOffTime
EvtSetAutoOffTimer
EvtSetAutoOffTimer
can be called periodically by other managers to reset the auto-off timer.
Err EvtSetAutoOffTimer(EvtSetAutoOffCmd cmd, UInt16 timeoutSecs)
  |
|
One of the defined commands. |
  |
|
A new timeout in seconds, ignored for the 'reset' command. |
  |
SetAtLeast |
Turn off in at least xxx seconds |
  |
SetExactly: |
Set the timer to turn off in xxx seconds |
  |
SetAtMost: |
Set the device to turn off in <= xxx seconds |
  |
SetDefault: |
Change default auto-off timeout to xxx seconds |
  |
ResetTimer: |
Reset the auto off timer. |
NOTE:  This functionality is only available in Palm OS 3.5 and later.
EvtResetAutoOffTimer
SysSetAutoOffTime
Boolean EvtSetNullEventTick(UInt32 tick)
true
if a low-level system event (such as a pen or key event) is available.
Boolean EvtSysEventAvail (Boolean ignorePenUps)
  |
|
If true , this routine ignores pen-up events when determining if there are any system events available. |
true
if a system event is available.
nilEvent
to the current application.
Err EvtWakeup (void)
  |   |