summaryrefslogtreecommitdiff
path: root/src/mtouch.c
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2010-04-10 23:11:59 +0200
committerHenrik Rydberg <rydberg@euromail.se>2010-04-15 06:10:07 +0200
commit223ba8b1b753e12a4826bacab282ab8dc7ba8689 (patch)
tree4e169a4c36b24fee41fe2f20a6039aa88e82e15f /src/mtouch.c
parent2cf55b491c571d49b0ce22549c08f47ffc451a69 (diff)
Introduce Memory
Add the Memory structure to hold the multitouch parsing state. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/mtouch.c')
-rw-r--r--src/mtouch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mtouch.c b/src/mtouch.c
index f5acd71..44b4376 100644
--- a/src/mtouch.c
+++ b/src/mtouch.c
@@ -38,6 +38,7 @@ int open_mtouch(struct MTouch *mt, int fd)
38 init_hwstate(&mt->hs); 38 init_hwstate(&mt->hs);
39 init_mtstate(&mt->prev_state); 39 init_mtstate(&mt->prev_state);
40 init_mtstate(&mt->state); 40 init_mtstate(&mt->state);
41 init_memory(&mt->mem);
41 SYSCALL(rc = ioctl(fd, EVIOCGRAB, (pointer)1)); 42 SYSCALL(rc = ioctl(fd, EVIOCGRAB, (pointer)1));
42 return rc; 43 return rc;
43} 44}