void srv_get_mouse_movement() { srv_mouse_button = SDL_GetRelativeMouseState(&srv_micky_x, &srv_micky_y); if (MouseRude) { SDL_WarpMouse(width/2,height/2); srv_Events(); srv_crap_button = SDL_GetRelativeMouseState(&srv_crap_x, &srv_crap_y); } }
void QueueSoundByte() { while(1) { if (SQ_Test() != -1) break; if(!SyncToSoundBuffer) return; srv_Events(); } kv_GetNextSampleByte(); /* this routine puts byte into SampleByte */ SQ_Store((TIA_Sound_Byte() + SampleByte) >> 1); }
void c_emulator(void) { Reset_emulator(); /* ExitEmulator gets set by Controls() if the user presses Escape */ while( !ExitEmulator ) { if(ResetEmulator) Reset_emulator(); srv_Events(); if(srv_done) break; /* SDL got a 'close window' message */ ScanFrame(); Controls(); srv_CopyScreen(); while(GamePaused) Controls(); } srv_Cleanup(); /* shutdown SDL */ }