diff options
author | Henrik Rydberg <rydberg@euromail.se> | 2010-04-10 23:18:02 +0200 |
---|---|---|
committer | Henrik Rydberg <rydberg@euromail.se> | 2010-04-15 06:10:07 +0200 |
commit | 030f4fdbe44d1af41c55cdda5baf71ba3225829f (patch) | |
tree | 8e5c28b70fbdd3fe0ce5a3e55a0b4b39ef65de83 /src/memory.c | |
parent | 32d5f821c5bbefc6eae2319209288ec74079529a (diff) | |
download | xorg-input-kobomultitouch-030f4fdbe44d1af41c55cdda5baf71ba3225829f.tar.gz xorg-input-kobomultitouch-030f4fdbe44d1af41c55cdda5baf71ba3225829f.tar.bz2 xorg-input-kobomultitouch-030f4fdbe44d1af41c55cdda5baf71ba3225829f.zip |
Keep logical buttons separate from the hardware ones
The button extraction currently modifies the MTState buttons,
upsetting the semantics in a bad way. This patch adds the logical
button state to the Memory structure, and uses it to compute the
logical button change.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/memory.c')
-rw-r--r-- | src/memory.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/memory.c b/src/memory.c index 6b502d8..b213694 100644 --- a/src/memory.c +++ b/src/memory.c @@ -23,4 +23,5 @@ void init_memory(struct Memory *mem) { + memset(mem, 0, sizeof(struct Memory)); } |