Update events.c
This commit is contained in:
+6
-6
@@ -12,7 +12,7 @@ bool pause_f = false; // pause flag
|
|||||||
bool quit = false; // quit flag
|
bool quit = false; // quit flag
|
||||||
bool gradient_d = false; // gradient direction flag
|
bool gradient_d = false; // gradient direction flag
|
||||||
|
|
||||||
int handle_events () {
|
int handle_events(void) {
|
||||||
|
|
||||||
////////////////////////////// EVENT LOOP //////////////////////////
|
////////////////////////////// EVENT LOOP //////////////////////////
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@ int handle_events () {
|
|||||||
grid[0][row + i][col] = 0; // zero out old column
|
grid[0][row + i][col] = 0; // zero out old column
|
||||||
}
|
}
|
||||||
col--;
|
col--;
|
||||||
disp_column (row, col);
|
disp_column(row, col);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -55,7 +55,7 @@ int handle_events () {
|
|||||||
grid[0][row + i][col] = 0; // zero out old column
|
grid[0][row + i][col] = 0; // zero out old column
|
||||||
}
|
}
|
||||||
col++;
|
col++;
|
||||||
disp_column (row, col);
|
disp_column(row, col);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -76,7 +76,7 @@ int handle_events () {
|
|||||||
if(event.key.keysym.sym == SDLK_r
|
if(event.key.keysym.sym == SDLK_r
|
||||||
&& (event.key.keysym.mod & KMOD_SHIFT) != 0 ) {
|
&& (event.key.keysym.mod & KMOD_SHIFT) != 0 ) {
|
||||||
rotate_col();
|
rotate_col();
|
||||||
disp_column (row, col);
|
disp_column(row, col);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,7 +86,7 @@ int handle_events () {
|
|||||||
grid[0][row + i][col] = 0; // zero out old column
|
grid[0][row + i][col] = 0; // zero out old column
|
||||||
}
|
}
|
||||||
row = 18 - (18-colcnt[col]);
|
row = 18 - (18-colcnt[col]);
|
||||||
disp_column (row, col);
|
disp_column(row, col);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -106,6 +106,6 @@ int handle_events () {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Ren_game ();
|
Ren_game();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user