diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-05-17 23:53:17 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-05-17 23:53:17 +0300 |
commit | 696c0f675ed72b875a2b276ea7c1f038e3fe674d (patch) | |
tree | d4a9bb0f4022b079868906922d03df4185897186 | |
parent | 21842ccfc30979851af65a2873221af913cd7753 (diff) |
clovercon driver update - it's possible to use analog stick for all our features like home combination, etc.
-rw-r--r-- | clovercon/clovercon.c | 8 | ||||
-rw-r--r-- | mods/hmods/clovercon.hmod | bin | 9861 -> 9866 bytes |
2 files changed, 4 insertions, 4 deletions
diff --git a/clovercon/clovercon.c b/clovercon/clovercon.c index ef3f90d0..53cacaca 100644 --- a/clovercon/clovercon.c +++ b/clovercon/clovercon.c @@ -629,10 +629,10 @@ static void clovercon_poll(struct input_polled_dev *polled_dev) { if (b) buttons_state |= (1 << 1); if (select) buttons_state |= (1 << 2); if (start) buttons_state |= (1 << 3); - if (up) buttons_state |= (1 << 4); - if (down) buttons_state |= (1 << 5); - if (left) buttons_state |= (1 << 6); - if (right) buttons_state |= (1 << 7); + if (up || (jy < -DEAD_ZONE)) buttons_state |= (1 << 4); + if (down || (jy > DEAD_ZONE)) buttons_state |= (1 << 5); + if (left || (jx < -DEAD_ZONE)) buttons_state |= (1 << 6); + if (right || (jx > DEAD_ZONE)) buttons_state |= (1 << 7); if (x) buttons_state |= (1 << 8); if (y) buttons_state |= (1 << 9); if (l) buttons_state |= (1 << 10); diff --git a/mods/hmods/clovercon.hmod b/mods/hmods/clovercon.hmod Binary files differindex c93a4f96..19e16936 100644 --- a/mods/hmods/clovercon.hmod +++ b/mods/hmods/clovercon.hmod |