zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SDL_pspevents.c File Reference
#include "SDL.h"
#include "../../events/SDL_sysevents.h"
#include "../../events/SDL_events_c.h"
#include "../../events/SDL_keyboard_c.h"
#include "SDL_pspvideo.h"
#include "SDL_pspevents_c.h"
#include "SDL_thread.h"
#include "SDL_keyboard.h"
#include <psphprm.h>

Go to the source code of this file.

Functions

int EventUpdate (void *data)
 
void PSP_EventInit (_THIS)
 
void PSP_EventQuit (_THIS)
 
void PSP_InitOSKeymap (_THIS)
 
void PSP_PumpEvents (_THIS)
 

Variables

static SDL_semevent_sem = NULL
 
static enum PspHprmKeys hprm = 0
 
struct {
   enum PspHprmKeys   id
 
   SDL_Keycode   sym
 
keymap_psp []
 
static int running = 0
 
static SDL_Threadthread = NULL
 

Function Documentation

int EventUpdate ( void data)

Definition at line 61 of file SDL_pspevents.c.

References event_sem, hprm, running, SDL_SemPost(), and SDL_SemWait().

Referenced by PSP_EventInit().

void PSP_EventInit ( _THIS  )
void PSP_EventQuit ( _THIS  )

Definition at line 270 of file SDL_pspevents.c.

References event_sem, NULL, running, SDL_DestroySemaphore(), and SDL_WaitThread().

Variable Documentation

SDL_sem* event_sem = NULL
static

Definition at line 46 of file SDL_pspevents.c.

Referenced by EventUpdate(), PSP_EventInit(), PSP_EventQuit(), and PSP_PumpEvents().

enum PspHprmKeys hprm = 0
static

Definition at line 45 of file SDL_pspevents.c.

Referenced by EventUpdate(), and PSP_PumpEvents().

enum PspHprmKeys id

Definition at line 50 of file SDL_pspevents.c.

struct { ... } keymap_psp[]
Initial value:
= {
{ PSP_HPRM_PLAYPAUSE, SDLK_F10 },
{ PSP_HPRM_FORWARD, SDLK_F11 },
{ PSP_HPRM_BACK, SDLK_F12 },
{ PSP_HPRM_VOL_UP, SDLK_F13 },
{ PSP_HPRM_VOL_DOWN, SDLK_F14 },
{ PSP_HPRM_HOLD, SDLK_F15 }
}

Referenced by PSP_PumpEvents().

int running = 0
static

Definition at line 48 of file SDL_pspevents.c.

Referenced by EventUpdate(), PSP_EventInit(), and PSP_EventQuit().

SDL_Thread* thread = NULL
static

Definition at line 47 of file SDL_pspevents.c.