VSF Documented
vsf_sdl2_event.c File Reference
#include "./vsf_sdl2_cfg.h"
#include "./include/SDL2/SDL.h"

Data Structures

struct  vsf_sdl2_event_node_t
 
struct  vsf_sdl2_event_t
 

Macros

#define __VSF_EDA_CLASS_INHERIT__
 

Typedefs

typedef struct vsf_sdl2_event_node_t vsf_sdl2_event_node_t
 
typedef struct vsf_sdl2_event_t vsf_sdl2_event_t
 

Functions

int SDL_PushEvent (SDL_Event *event)
 
void __SDL_InitEvent (uint32_t flags)
 
void __SDL_FiniEvent (void)
 
int SDL_NumJoysticks (void)
 
SDL_JoystickSDL_JoystickOpen (int device_index)
 
int SDL_JoystickEventState (int state)
 
int SDL_JoystickNumButtons (SDL_Joystick *joystick)
 
int SDL_JoystickNumAxes (SDL_Joystick *joystick)
 
int SDL_JoystickNumBalls (SDL_Joystick *joystick)
 
int SDL_JoystickNumHats (SDL_Joystick *joystick)
 
int SDL_CaptureMouse (SDL_bool enabled)
 
uint32_t SDL_GetGlobalMouseState (int *x, int *y)
 
int SDL_PeepEvents (SDL_Event *events, int numevents, SDL_eventaction action, uint32_t minType, uint32_t maxType)
 
int SDL_PollEvent (SDL_Event *event)
 
int SDL_WaitEventTimeout (SDL_Event *event, int timeout)
 
int SDL_WaitEvent (SDL_Event *event)
 
void SDL_FlushEvent (uint32_t type)
 
uint32_t SDL_RegisterEvents (int numevents)
 
uint8_t SDL_EventState (uint32_t type, int state)
 
void SDL_PumpEvents (void)
 
const char * SDL_GetScancodeName (SDL_Scancode scancode)
 
char * SDL_UCS4ToUTF8 (uint32_t ch, char *dst)
 
const char * SDL_GetKeyName (SDL_Keycode key)
 

Macro Definition Documentation

◆ __VSF_EDA_CLASS_INHERIT__

#define __VSF_EDA_CLASS_INHERIT__

Typedef Documentation

◆ vsf_sdl2_event_node_t

typedef struct vsf_sdl2_event_node_t vsf_sdl2_event_node_t

◆ vsf_sdl2_event_t

typedef struct vsf_sdl2_event_t vsf_sdl2_event_t

Function Documentation

◆ SDL_PushEvent()

int SDL_PushEvent ( SDL_Event * event)

◆ __SDL_InitEvent()

void __SDL_InitEvent ( uint32_t flags)

◆ __SDL_FiniEvent()

void __SDL_FiniEvent ( void )

◆ SDL_NumJoysticks()

int SDL_NumJoysticks ( void )

◆ SDL_JoystickOpen()

SDL_Joystick * SDL_JoystickOpen ( int device_index)

◆ SDL_JoystickEventState()

int SDL_JoystickEventState ( int state)

◆ SDL_JoystickNumButtons()

int SDL_JoystickNumButtons ( SDL_Joystick * joystick)

◆ SDL_JoystickNumAxes()

int SDL_JoystickNumAxes ( SDL_Joystick * joystick)

◆ SDL_JoystickNumBalls()

int SDL_JoystickNumBalls ( SDL_Joystick * joystick)

◆ SDL_JoystickNumHats()

int SDL_JoystickNumHats ( SDL_Joystick * joystick)

◆ SDL_CaptureMouse()

int SDL_CaptureMouse ( SDL_bool enabled)

◆ SDL_GetGlobalMouseState()

uint32_t SDL_GetGlobalMouseState ( int * x,
int * y )

◆ SDL_PeepEvents()

int SDL_PeepEvents ( SDL_Event * events,
int numevents,
SDL_eventaction action,
uint32_t minType,
uint32_t maxType )

◆ SDL_PollEvent()

int SDL_PollEvent ( SDL_Event * event)

◆ SDL_WaitEventTimeout()

int SDL_WaitEventTimeout ( SDL_Event * event,
int timeout )

◆ SDL_WaitEvent()

int SDL_WaitEvent ( SDL_Event * event)

◆ SDL_FlushEvent()

void SDL_FlushEvent ( uint32_t type)

◆ SDL_RegisterEvents()

uint32_t SDL_RegisterEvents ( int numevents)

◆ SDL_EventState()

uint8_t SDL_EventState ( uint32_t type,
int state )

◆ SDL_PumpEvents()

void SDL_PumpEvents ( void )

◆ SDL_GetScancodeName()

const char * SDL_GetScancodeName ( SDL_Scancode scancode)

◆ SDL_UCS4ToUTF8()

char * SDL_UCS4ToUTF8 ( uint32_t ch,
char * dst )

◆ SDL_GetKeyName()

const char * SDL_GetKeyName ( SDL_Keycode key)
Generated from commit: vsfteam/vsf@ceb53fd