aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cInput.cpp5
-rw-r--r--src/cInput.h1
2 files changed, 6 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
{
diff --git a/src/cInput.h b/src/cInput.h
index f34095f..e25d7fb 100644
--- a/src/cInput.h
+++ b/src/cInput.h
@@ -18,6 +18,7 @@
#define _EVENT_KEY 2
#define _EVENT_MOUSE 3
#define _EVENT_TERM 4
+#define _EVENT_FUNCTION1 5
struct sInputEvent
{