xworld: support diagonal buttons on Zen X-Fi

Change-Id: Ia738ecd2a39c0c0772d6f939d549dd5d0eda055e
This commit is contained in:
Franklin Wei 2017-09-30 20:50:33 -04:00
parent bb55fceb70
commit 23e7d0ef19
4 changed files with 19 additions and 6 deletions

View file

@ -64,12 +64,14 @@ struct keymapping_t {
int down;
int left;
int right;
#if (CONFIG_KEYPAD == SANSA_FUZEPLUS_PAD)
/* These aren't conditional, even if they aren't used (this is to
* prevent headers and source from having varying defintions of
* this structure, leading to memory corruption */
int upleft;
int upright;
int downleft;
int downright;
#endif
};
typedef void (*AudioCallback)(void *param, uint8_t *stream, int len);