mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Allow to exit by pressing `q' in addition to ESC. Don't bump PORTREVISION
as it is really a minor change.
This commit is contained in:
parent
689da0a8e6
commit
8ce7c7528b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=274414
1 changed files with 4 additions and 2 deletions
|
@ -70,18 +70,20 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
void CWindow::fnKeyboard(unsigned char key, int x, int y) {
|
void CWindow::fnKeyboard(unsigned char key, int x, int y) {
|
||||||
@@ -245,8 +253,8 @@
|
@@ -245,8 +253,10 @@
|
||||||
|
|
||||||
switch(key) {
|
switch(key) {
|
||||||
case 27: // ESC
|
case 27: // ESC
|
||||||
-// exit(0);
|
-// exit(0);
|
||||||
- glutLeaveMainLoop();
|
- glutLeaveMainLoop();
|
||||||
|
+ case 'q':
|
||||||
|
+ case 'Q':
|
||||||
+ exit(0);
|
+ exit(0);
|
||||||
+// glutLeaveMainLoop();
|
+// glutLeaveMainLoop();
|
||||||
break;
|
break;
|
||||||
case 127: // Delete
|
case 127: // Delete
|
||||||
if(mod == GLUT_ACTIVE_CTRL) {
|
if(mod == GLUT_ACTIVE_CTRL) {
|
||||||
@@ -639,9 +647,11 @@
|
@@ -639,9 +649,11 @@
|
||||||
g_window->fnMouseButtons(button, state, x, y);
|
g_window->fnMouseButtons(button, state, x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue