diff options
Diffstat (limited to 'src/mtouch.c')
-rw-r--r-- | src/mtouch.c | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/src/mtouch.c b/src/mtouch.c index 5cb84fe..f7ffb12 100644 --- a/src/mtouch.c +++ b/src/mtouch.c @@ -21,8 +21,6 @@ #include "mtouch.h" -/******************************************************/ - int configure_mtouch(struct MTouch *mt, int fd) { int rc = read_capabilities(&mt->caps, fd); @@ -32,8 +30,6 @@ int configure_mtouch(struct MTouch *mt, int fd) return 0; } -/******************************************************/ - int open_mtouch(struct MTouch *mt, int fd) { int rc; @@ -45,8 +41,6 @@ int open_mtouch(struct MTouch *mt, int fd) return rc; } -/******************************************************/ - int close_mtouch(struct MTouch *mt, int fd) { int rc; @@ -54,22 +48,16 @@ int close_mtouch(struct MTouch *mt, int fd) return rc; } -/******************************************************/ - -bool read_synchronized_event(struct MTouch *mt, int fd) +int read_synchronized_event(struct MTouch *mt, int fd) { - const struct input_event* ev; - while(ev = get_iobuf_event(&mt->buf, fd)) + const struct input_event *ev; + while (ev = get_iobuf_event(&mt->buf, fd)) if (read_hwdata(&mt->hw, ev)) - return 1; + return 1; return 0; } -/******************************************************/ - void parse_event(struct MTouch *mt) { modify_state(&mt->ns, &mt->hw, &mt->caps); } - -/******************************************************/ |