aboutsummaryrefslogtreecommitdiff
path: root/example/3d.cpp
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-06-12 23:29:46 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-06-12 23:29:46 +0200
commit2d7b692052a99674654b39c061ee7cd79db77a1a (patch)
tree8687e248b4bb159a1430a2139aea76c2fb6e6266 /example/3d.cpp
parent752df4e54d9ee86efefe4a08ae6ef77a03bf046f (diff)
downloadtermgl-2d7b692052a99674654b39c061ee7cd79db77a1a.tar.gz
Added support for Function Keys as _EVENT_FUNCTION1
Those are normally the first 4 to 10 function keys. others are addressed with [ instead of O and might become _EVENT_FUNCTION2 in the future
Diffstat (limited to 'example/3d.cpp')
-rw-r--r--example/3d.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/example/3d.cpp b/example/3d.cpp
index 1b7e9e1..78417ed 100644
--- a/example/3d.cpp
+++ b/example/3d.cpp
@@ -145,6 +145,10 @@ int main(int argc, char* argv[])
break;
};
}
+ else if (ie.type == _EVENT_FUNCTION1)
+ {
+ return 0;
+ }
else if (ie.type == _EVENT_TERM)
{
return 0;