From 030f4fdbe44d1af41c55cdda5baf71ba3225829f Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Sat, 10 Apr 2010 23:18:02 +0200 Subject: 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 --- src/memory.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/memory.c') 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)); } -- cgit v1.2.3