mirror of
https://codeberg.org/kbruen/y3s2-gui-project.git
synced 2025-02-22 17:19:37 +02:00
Added esc to quit on No Maze screen
This commit is contained in:
parent
429fe9e60b
commit
011b57f051
3 changed files with 8 additions and 1 deletions
|
@ -20,3 +20,9 @@ void NoMazeScreen::display() {
|
|||
glFlush();
|
||||
glutSwapBuffers();
|
||||
}
|
||||
|
||||
void NoMazeScreen::keyboard(unsigned char key, int x, int y) {
|
||||
if (key == '\e') {
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,4 +4,5 @@
|
|||
|
||||
struct NoMazeScreen : public GlutEvents {
|
||||
virtual void display();
|
||||
virtual void keyboard(unsigned char key, int x, int y);
|
||||
};
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Name: y3s2-gui-project
|
||||
Version: 1.0.5
|
||||
Version: 1.0.6
|
||||
Release: 1%{?dist}
|
||||
Summary: Maze project in OpenGL for Graphics and User Interfaces lecture in year 3, semester 2
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue