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.h | |
| parent | 32d5f821c5bbefc6eae2319209288ec74079529a (diff) | |
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.h')
| -rw-r--r-- | src/memory.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 @@ | |||
| 25 | #include "mtstate.h" | 25 | #include "mtstate.h" |
| 26 | 26 | ||
| 27 | struct Memory { | 27 | struct Memory { |
| 28 | unsigned btdata; | ||
| 28 | }; | 29 | }; |
| 29 | 30 | ||
| 30 | void init_memory(struct Memory *mem); | 31 | void init_memory(struct Memory *mem); |
