Documentation  |   Table of Contents   |  < Previous   |  Next >  

112    SysEvent.h

Porting Applications to Palm OS® Cobalt

Exploring Palm OS®

The contents of the SysEventType structure's data union has both gained and lost members. This union no longer contains keyUp or keyHold, and now has winFocusGained, winFocusLost, winUpdate, and winResized members.

Deleted APIs ^TOP^

Table 112.1  Deleted macros

Deleted API

Use instead

PenGetPoint()

EvtGetPen()

Table 112.2  Deleted structures

Deleted API

Use instead

SysEventStoreType

Nothing. This structure showed how events were stored in the event queue, and was really for system use only.

Modified APIs ^TOP^

Table 112.3  Modified structures

Modified API

Description of change

SysEventType

The tapCount field, formerly an unsigned 8-bit integer, has been expanded to 32-bits. The data union no longer contains keyUp or keyHold, and now has winFocusGained, winFocusLost, winUpdate, and winResized members. Padding bytes have been added to this structure as well.

_GenericEventType

This structure now consists of sixteen 16-bit unsigned integers; formerly it only contained eight of them.

_TSMConfirmType

Padding bytes have been added.

Table 112.4  Modified enumerated types

Modified API

Description of change

SysEventsEnum

Formerly an enum, this is now a typedef that accepts one of the values defined by the sysEventsEnumTag enum.

Unchanged APIs ^TOP^

Table 112.5  Unchanged structures

_KeyDownEventType

_KeyHoldEventType

_KeyUpEventType

_PenUpEventType

_TSMFepButtonType

_TSMFepModeEventType

_WinEnterEventType

_WinExitEventType

Table 112.6  Unchanged #defines

appEvtHookKeyMask

autoRepeatKeyMask

capsLockMask

commandKeyMask

controlKeyMask

doubleTapKeyMask

evtNoWait

evtWaitForever

libEvtHookKeyMask

numLockMask

optionKeyMask

poweredOnKeyMask

shiftKeyMask

virtualKeyMask