PSP: Fix type mismatch warnings.
parent
c1317175b4
commit
5ddac7e026
|
@ -101,7 +101,7 @@ int SDL_SemWaitTimeout(SDL_sem *sem, Uint32 timeout)
|
||||||
pTimeout = &timeout;
|
pTimeout = &timeout;
|
||||||
}
|
}
|
||||||
|
|
||||||
res = sceKernelWaitSema(sem->semid, 1, pTimeout);
|
res = sceKernelWaitSema(sem->semid, 1, (SceUInt *) pTimeout);
|
||||||
switch (res) {
|
switch (res) {
|
||||||
case SCE_KERNEL_ERROR_OK:
|
case SCE_KERNEL_ERROR_OK:
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -62,16 +62,17 @@ static struct {
|
||||||
{ PSP_HPRM_HOLD, SDLK_F15 }
|
{ PSP_HPRM_HOLD, SDLK_F15 }
|
||||||
};
|
};
|
||||||
|
|
||||||
int EventUpdate(void *data)
|
int
|
||||||
|
EventUpdate(void *data)
|
||||||
{
|
{
|
||||||
while (running) {
|
while (running) {
|
||||||
SDL_SemWait(event_sem);
|
SDL_SemWait(event_sem);
|
||||||
sceHprmPeekCurrentKey(&hprm);
|
sceHprmPeekCurrentKey((u32 *) &hprm);
|
||||||
SDL_SemPost(event_sem);
|
SDL_SemPost(event_sem);
|
||||||
/* Delay 1/60th of a second */
|
/* Delay 1/60th of a second */
|
||||||
sceKernelDelayThread(1000000 / 60);
|
sceKernelDelayThread(1000000 / 60);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void PSP_PumpEvents(_THIS)
|
void PSP_PumpEvents(_THIS)
|
||||||
|
@ -80,7 +81,6 @@ void PSP_PumpEvents(_THIS)
|
||||||
enum PspHprmKeys keys;
|
enum PspHprmKeys keys;
|
||||||
enum PspHprmKeys changed;
|
enum PspHprmKeys changed;
|
||||||
static enum PspHprmKeys old_keys = 0;
|
static enum PspHprmKeys old_keys = 0;
|
||||||
SDL_Keysym sym;
|
|
||||||
|
|
||||||
SDL_SemWait(event_sem);
|
SDL_SemWait(event_sem);
|
||||||
keys = hprm;
|
keys = hprm;
|
||||||
|
|
Loading…
Reference in New Issue