summaryrefslogtreecommitdiff
path: root/apps/plugins/xworld/sys.h
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2017-09-30 20:50:33 -0400
committerFranklin Wei <git@fwei.tk>2017-09-30 20:50:33 -0400
commit23e7d0ef19dc82e39f249a4cd65ec797a6c06aba (patch)
tree73d7b786e6255ae703786f98c3d3df0c5341a5dd /apps/plugins/xworld/sys.h
parentbb55fceb7020e3235d4b5c33976d9b9d10dc091a (diff)
downloadrockbox-23e7d0ef19dc82e39f249a4cd65ec797a6c06aba.zip
rockbox-23e7d0ef19dc82e39f249a4cd65ec797a6c06aba.tar.gz
rockbox-23e7d0ef19dc82e39f249a4cd65ec797a6c06aba.tar.bz2
rockbox-23e7d0ef19dc82e39f249a4cd65ec797a6c06aba.tar.xz
xworld: support diagonal buttons on Zen X-Fi
Change-Id: Ia738ecd2a39c0c0772d6f939d549dd5d0eda055e
Diffstat (limited to 'apps/plugins/xworld/sys.h')
-rw-r--r--apps/plugins/xworld/sys.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/xworld/sys.h b/apps/plugins/xworld/sys.h
index ced1fd9..4b1ec9b 100644
--- a/apps/plugins/xworld/sys.h
+++ b/apps/plugins/xworld/sys.h
@@ -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);