diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-05-17 23:54:43 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2017-05-17 23:54:43 +0300 |
commit | ff321d834cd2bc888c8524a33533a44c54f60da6 (patch) | |
tree | 38b53888c4b3cefd812593c1051b74187820b39d | |
parent | 8cce1d1f93118b0d9cdf39628dd90532ad2bebf1 (diff) | |
parent | 696c0f675ed72b875a2b276ea7c1f038e3fe674d (diff) |
Merge branch 'master' of https://github.com/ClusterM/hakchi2
-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 |