summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/ptycon_bridge_impl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/internal/ptycon_bridge_impl.h b/src/internal/ptycon_bridge_impl.h
index a9d255c..279ce07 100644
--- a/src/internal/ptycon_bridge_impl.h
+++ b/src/internal/ptycon_bridge_impl.h
@@ -2,6 +2,7 @@
#define PTYCON_BRIDGE_IMPL_H
#include <psxtypes/psxtypes.h>
+#include <ntcon/ntcon.h>
enum ptyc_ctrl_state {
PTYC_CTRL_STATE_ESI,
@@ -11,6 +12,7 @@ enum ptyc_ctrl_state {
};
#define PTYC_BUFFER_ELEMENTS 0x8000
+#define PTYC_RAW_EVENTS 0x400
#define PTYC_CTRL_PARAMS 0x20
#define PTYC_ESI_ARRAY_SIZE 0x5F
@@ -24,6 +26,11 @@ struct ptyc_term_data {
wchar16_t screen [PTYC_BUFFER_ELEMENTS];
};
+struct ptyc_term_input {
+ nt_input_record events [PTYC_RAW_EVENTS];
+ unsigned char stream [PTYC_RAW_EVENTS*4];
+};
+
struct ptyc_term_ctx;
typedef void * __fastcall ptyc_term_handler (struct ptyc_term_ctx *);
@@ -47,6 +54,7 @@ struct ptyc_term_ctx {
uint16_t foreground;
uint16_t background;
struct ptyc_term_data data;
+ struct ptyc_term_input input;
};
extern ptyc_term_handler * const ptyc_esi_handlers[];