diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2019-06-12 23:29:46 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2019-06-12 23:29:46 +0200 |
commit | 2d7b692052a99674654b39c061ee7cd79db77a1a (patch) | |
tree | 8687e248b4bb159a1430a2139aea76c2fb6e6266 /src/cInput.cpp | |
parent | 752df4e54d9ee86efefe4a08ae6ef77a03bf046f (diff) | |
download | termgl-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 'src/cInput.cpp')
-rw-r--r-- | src/cInput.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cInput.cpp b/src/cInput.cpp index 891be1f..b11bbb5 100644 --- a/src/cInput.cpp +++ b/src/cInput.cpp @@ -64,6 +64,11 @@ sInputEvent cInput::poll() ret.type = _EVENT_KEY; } } + else if(buff[0] == 'O') + { + ret.c = buff[1]; + ret.type = _EVENT_FUNCTION1; + } } else { |