summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2019-12-01 14:26:41 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2019-12-01 14:26:41 +0000
commit0c2b0013ee9929feded230cc9aa0c825a436349f (patch)
treedb35a07cfd1296a4681f3f2b8105f2bc7242e124 /include
parentb57b8a47109d8de7a773a32e52c1263b3617149c (diff)
downloadlibdom-0c2b0013ee9929feded230cc9aa0c825a436349f.tar.gz
libdom-0c2b0013ee9929feded230cc9aa0c825a436349f.tar.bz2
keyboard events: Expose the creation function.
Diffstat (limited to 'include')
-rw-r--r--include/dom/events/keyboard_event.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/dom/events/keyboard_event.h b/include/dom/events/keyboard_event.h
index 132049e..236a3f4 100644
--- a/include/dom/events/keyboard_event.h
+++ b/include/dom/events/keyboard_event.h
@@ -23,6 +23,10 @@ typedef enum {
DOM_KEY_LOCATION_NUMPAD = 3
} dom_key_location;
+dom_exception _dom_keyboard_event_create(dom_keyboard_event **evt);
+#define dom_keyboard_event_create(n) \
+ _dom_keyboard_event_create((dom_keyboard_event **) (n))
+
dom_exception _dom_keyboard_event_get_key_identifier(dom_keyboard_event *evt,
dom_string **ident);
#define dom_keyboard_event_get_key_identifier(e, i) \