Event
Object Hierarchy:
Description:
[ CCode ( cname = "SDL_Event" , destroy_function = "" , has_target = false , has_type_id = false ) ]
[ SimpleType ]
public struct Event
[ SimpleType ]
public struct Event
Namespace: SDL
Package: sdl2
Content:
Static methods:
- public static void add_eventwatch (EventFilter filter)
- public static void del_eventwatch (EventFilter filter)
- public static void filter_events (EventFilter filter)
- public static void flush_event (EventType type)
- public static void flush_events (uint32 min_type, uint32 max_type)
- public static bool get_eventfilter (out unowned EventFilter filter)
- public static bool has_event (EventType type)
- public static bool has_events (uint32 min_type, uint32 max_type)
- public static void peep (Event[] events, EventAction action, uint32 min_type, uint32 max_type)
- public static int poll (out Event ev)
- public static void pump ()
- public static int push (Event? ev)
- public static bool quit_requested ()
- public static uint32 register_events (int numevents)
- public static void set_eventfilter (EventFilter filter)
- public static uint8 state (EventType type, EventState state)
- public static int wait (out Event ev)
- public static int wait_inms (out Event ev, int timeout)
Fields:
- public EventType type
- public CommonEvent common
- public WindowEvent window
- public KeyboardEvent key
- public TextEditingEvent edit
- public TextInputEvent text
- public MouseMotionEvent motion
- public MouseButtonEvent button
- public MouseWheelEvent wheel
- public JoyAxisEvent jaxis
- public JoyBallEvent jball
- public JoyHatEvent jhat
- public JoyButtonEvent jbutton
- public JoyDeviceEvent jdevice
- public ControllerAxisEvent caxis
- public ControllerButtonEvent cbutton
- public ControllerDeviceEvent cdevice
- public AudioDeviceEvent adevice
- public QuitEvent quit
- public UserEvent user
- public SysWMEvent syswm
- public TouchFingerEvent tfinger
- public MultiGestureEvent mgesture
- public DollarGestureEvent dgesture
- public DropEvent drop