scope "event"
This commit is contained in:
@@ -517,10 +517,10 @@ static void HandleInputEvents(float fDeltaTime)
|
|||||||
void GameLoop()
|
void GameLoop()
|
||||||
{
|
{
|
||||||
bool do_exit = false;
|
bool do_exit = false;
|
||||||
SDL_Event event;
|
|
||||||
while(!do_exit)
|
while(!do_exit)
|
||||||
{
|
{
|
||||||
// process all queued events
|
// process all queued events
|
||||||
|
SDL_Event event;
|
||||||
while(SDL_PollEvent(&event))
|
while(SDL_PollEvent(&event))
|
||||||
{
|
{
|
||||||
switch(event.type)
|
switch(event.type)
|
||||||
|
|||||||
Reference in New Issue
Block a user