sdl Reference Manual

Synopsis

public struct Event {
    public    uchar                     type ;
    public    ActiveEvent               active ;
    public    KeyboardEvent             key ;
    public    MouseMotionEvent          motion ;
    public    MouseButtonEvent          button ;
    public    JoyAxisEvent              jaxis ;
    public    JoyBallEvent              jball ;
    public    JoyHatEvent               jhat ;
    public    JoyButtonEvent            jbutton ;
    public    ResizeEvent               resize ;
    public    ExposeEvent               expose ;
    public    QuitEvent                 quit ;
    public    UserEvent                 user ;
    public    SysWMEvent                syswm ;


    public    static void               pump                      (  ) ;
    public    static void               peep                      ( Event*              events,
                                                                    int                 numevents,
                                                                    EventAction         action,
                                                                    EventMask           mask ) ;
    public    static int                poll                      ( Event               ev ) ;
    public    static int                wait                      ( Event               ev ) ;
    public    static int                push                      ( Event               ev ) ;
    public    static uchar              state                     ( uchar               type,
                                                                    EventState          state ) ;
}

Description

Details

Constructor Details

Field Details

type
    public    uchar                     type ;		

active
    public    ActiveEvent               active ;		

key
    public    KeyboardEvent             key ;		

motion
    public    MouseMotionEvent          motion ;		

button
    public    MouseButtonEvent          button ;		

jaxis
    public    JoyAxisEvent              jaxis ;		

jball
    public    JoyBallEvent              jball ;		

jhat
    public    JoyHatEvent               jhat ;		

jbutton
    public    JoyButtonEvent            jbutton ;		

resize
    public    ResizeEvent               resize ;		

expose
    public    ExposeEvent               expose ;		

quit
    public    QuitEvent                 quit ;		

user
    public    UserEvent                 user ;		

syswm
    public    SysWMEvent                syswm ;		

Method Details

pump ()
    public    static void               pump                      (  ) ;		

peep ()
    public    static void               peep                      ( Event*              events,
                                                                    int                 numevents,
                                                                    EventAction         action,
                                                                    EventMask           mask ) ;		

poll ()
    public    static int                poll                      ( Event               ev ) ;		

wait ()
    public    static int                wait                      ( Event               ev ) ;		

push ()
    public    static int                push                      ( Event               ev ) ;		

state ()
    public    static uchar              state                     ( uchar               type,
                                                                    EventState          state ) ;		


Created by Valadoc