diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2008-11-06 17:18:16 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2008-11-06 17:18:16 +0100 |
| commit | 63de72d8d810e3692c96c7385b497bb4d68ef54a (patch) | |
| tree | caa3ecce7c826553d611193f6f1363d76ebd906f /src/hwdata.c | |
| parent | 3734c2c5dc65f41aa727d9d69201d604eab6e77d (diff) | |
state added, now do the matching
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src/hwdata.c')
| -rw-r--r-- | src/hwdata.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hwdata.c b/src/hwdata.c index 17b9a46..029d68a 100644 --- a/src/hwdata.c +++ b/src/hwdata.c | |||
| @@ -22,13 +22,13 @@ bool read_hwdata(struct HWData *hw, const struct input_event* ev) | |||
| 22 | case EV_KEY: | 22 | case EV_KEY: |
| 23 | switch (ev->code) { | 23 | switch (ev->code) { |
| 24 | case BTN_LEFT: | 24 | case BTN_LEFT: |
| 25 | hw->left = on; | 25 | hw->button[MT_BUTTON_LEFT] = on; |
| 26 | break; | 26 | break; |
| 27 | case BTN_MIDDLE: | 27 | case BTN_MIDDLE: |
| 28 | hw->middle = on; | 28 | hw->button[MT_BUTTON_MIDDLE] = on; |
| 29 | break; | 29 | break; |
| 30 | case BTN_RIGHT: | 30 | case BTN_RIGHT: |
| 31 | hw->right = on; | 31 | hw->button[MT_BUTTON_RIGHT] = on; |
| 32 | break; | 32 | break; |
| 33 | case BTN_MT_REPORT_PACKET: | 33 | case BTN_MT_REPORT_PACKET: |
| 34 | if (on) | 34 | if (on) |
