aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/evdev.h
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-08-10 20:30:07 +0200
committercbdev <cb@cbcdn.com>2019-08-10 20:30:07 +0200
commit48bf96602023b2ead855f13477b6f5e26b663b45 (patch)
treedbdcb002c0211b566487c174834a408ba881958c /backends/evdev.h
parentcf93d280af47aea1bf8bdafa30eabb2c2de005b8 (diff)
downloadmidimonster-48bf96602023b2ead855f13477b6f5e26b663b45.tar.gz
midimonster-48bf96602023b2ead855f13477b6f5e26b663b45.tar.bz2
midimonster-48bf96602023b2ead855f13477b6f5e26b663b45.zip
Clean up & check unions
Diffstat (limited to 'backends/evdev.h')
-rw-r--r--backends/evdev.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/backends/evdev.h b/backends/evdev.h
index f89e362..b26664b 100644
--- a/backends/evdev.h
+++ b/backends/evdev.h
@@ -44,3 +44,12 @@ typedef struct /*_evdev_instance_model*/ {
struct libevdev_uinput* output_ev;
#endif
} evdev_instance_data;
+
+typedef union {
+ struct {
+ uint32_t pad;
+ uint16_t type;
+ uint16_t code;
+ } fields;
+ uint64_t label;
+} evdev_channel_ident; \ No newline at end of file