gaevent.java

来自「J2ME的游戏原代码!希望能帮助有需要帮助的师兄弟们!」· Java 代码 · 共 81 行

JAVA
81
字号
/** * Class that holds event information. */class GAEvent{    // Start, Redraw, Terminate, MenuSettings only have a type.    public byte type; // in C this was GAEventType (an enum).    // Depending on type, GAEvent may have more variables.    // Keyboard    public byte key; // enum KeySym    public KeyboardState keyboardState = new KeyboardState();    // Timer    public byte timerId; // Was enum GATimerId    /* ReadByte       unsigned char            byte;       */    /* ComOpen       uint32                   SessionID;       uint16                   Length;       unsigned char           *TargetInfo; // A data pointer, the length is given by Length    //ComOpenResponse    uint32                   SessionID;    GA_StatusCode_t          Result;    OBEX_Handle_t            Handle;    // ComPut    uint32                   SessionID;    uint16                   FileNameLength;    char                    *FileName; // A null terminated string    uint16                   MediaOrigin;    MSG_SubscriberNumber_t  *PhoneNumber; // A null terminated string    uint16                   DataLength;    unsigned char           *Data; // A data pointer, the length is given by DataLength    // ComPutIP    uint16                   MediaOrigin;    uint16                   DataLength;    IP_Socket_t              IP_Socket;    // ComPutResponse    uint32                   SessionID;    GA_StatusCode_t          Result;    // ComClose    uint32                   SessionID;    // ComCloseResponse    uint32                   SessionID;    GA_StatusCode_t          Result;    // GAComBTInqResponse    GAComBTInqResponse_t    *BTDevicesList;    sint16                   NrOfBTDevices;    */    // GAHighScore    boolean ClearHighScore;    boolean ViewHighScore;    boolean SendHighScore;    // GAReset    boolean ClearResume;    // GASelectPic    byte SelectPicResult;}class KeyboardState{    boolean ShiftUp;    boolean ShiftDown;    boolean FlipClosed;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?