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.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/memory.h') diff --git a/src/memory.h b/src/memory.h index 46dd312..a6c51ec 100644 --- a/src/memory.h +++ b/src/memory.h @@ -25,6 +25,7 @@ #include "mtstate.h" struct Memory { + unsigned btdata; }; void init_memory(struct Memory *mem); -- cgit v1.2.3