summaryrefslogtreecommitdiff
path: root/src/mtouch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mtouch.c')
-rw-r--r--src/mtouch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mtouch.c b/src/mtouch.c
index f7ffb12..5bf72ec 100644
--- a/src/mtouch.c
+++ b/src/mtouch.c
@@ -35,8 +35,8 @@ int open_mtouch(struct MTouch *mt, int fd)
35 int rc; 35 int rc;
36 init_iobuf(&mt->buf); 36 init_iobuf(&mt->buf);
37 init_hwdata(&mt->hw); 37 init_hwdata(&mt->hw);
38 init_state(&mt->os); 38 init_hwstate(&mt->ohs);
39 init_state(&mt->ns); 39 init_hwstate(&mt->nhs);
40 SYSCALL(rc = ioctl(fd, EVIOCGRAB, (pointer)1)); 40 SYSCALL(rc = ioctl(fd, EVIOCGRAB, (pointer)1));
41 return rc; 41 return rc;
42} 42}
@@ -59,5 +59,5 @@ int read_synchronized_event(struct MTouch *mt, int fd)
59 59
60void parse_event(struct MTouch *mt) 60void parse_event(struct MTouch *mt)
61{ 61{
62 modify_state(&mt->ns, &mt->hw, &mt->caps); 62 modify_hwstate(&mt->nhs, &mt->hw, &mt->caps);
63} 63}