summaryrefslogtreecommitdiff
path: root/src/haiku_support.h
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-01-10 02:32:01 +0000
committerPo Lu <luangruo@yahoo.com>2022-01-10 02:32:01 +0000
commitbf121747de93f7a7d04f04ffde5e35c8725451e5 (patch)
treea16a1ec6f9657588b415cf2aa44ec7af582b37aa /src/haiku_support.h
parentf3b1badfd61c499f141ecbf95cf594e73a752e4a (diff)
downloademacs-bf121747de93f7a7d04f04ffde5e35c8725451e5.tar.gz
emacs-bf121747de93f7a7d04f04ffde5e35c8725451e5.tar.bz2
emacs-bf121747de93f7a7d04f04ffde5e35c8725451e5.zip
Don't hard code key codes on Haiku
* src/haiku_support.cc (keysym_from_raw_char): New function. (DispatchMessage): Map raw character to keysym if applicable. (be_map_key): Delete function. * src/haiku_support.h (struct haiku_key_event): Update fields to hold keysym and character instead. * src/haikuterm.c (haiku_read_socket): Don't call be_map_key, and use keysym field if provided instead.
Diffstat (limited to 'src/haiku_support.h')
-rw-r--r--src/haiku_support.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/haiku_support.h b/src/haiku_support.h
index 114e8429ab5..d39e30735d3 100644
--- a/src/haiku_support.h
+++ b/src/haiku_support.h
@@ -130,9 +130,8 @@ struct haiku_key_event
{
void *window;
int modifiers;
- uint32_t mb_char;
- uint32_t unraw_mb_char;
- short kc;
+ unsigned keysym;
+ uint32_t multibyte_char;
};
struct haiku_activation_event
@@ -560,9 +559,6 @@ extern "C"
extern void
BWindow_Flush (void *window);
- extern void
- be_map_key (uint32_t kc, int *non_ascii_p, unsigned *code);
-
extern void *
BScrollBar_make_for_view (void *view, int horizontal_p,
int x, int y, int x1, int y1,