summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZakk Roberts <midk@rockbox.org>2006-02-22 23:26:54 +0000
committerZakk Roberts <midk@rockbox.org>2006-02-22 23:26:54 +0000
commitf166accb6246ff329a085d103f20c91d0dc5e4be (patch)
treed9c787ab421a544a4e3786e456400c7da1db096b
parentc85ad42c35e8aa91a6f0f1b8e5c1c361e90244d1 (diff)
downloadrockbox-f166accb6246ff329a085d103f20c91d0dc5e4be.tar.gz
rockbox-f166accb6246ff329a085d103f20c91d0dc5e4be.zip
Fixed some iPod button mappings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8795 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/cube.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/plugins/cube.c b/apps/plugins/cube.c
index 57003a0eb8..d37eb41c09 100644
--- a/apps/plugins/cube.c
+++ b/apps/plugins/cube.c
@@ -84,12 +84,12 @@ PLUGIN_HEADER
#elif (CONFIG_KEYPAD == IPOD_4G_PAD)
#define CUBE_QUIT BUTTON_MENU
-#define CUBE_X_INC BUTTON_LEFT
-#define CUBE_X_DEC BUTTON_RIGHT
+#define CUBE_X_INC BUTTON_RIGHT
+#define CUBE_X_DEC BUTTON_LEFT
#define CUBE_Y_INC BUTTON_SCROLL_FWD
#define CUBE_Y_DEC BUTTON_SCROLL_BACK
-#define CUBE_Z_INC (BUTTON_SELECT | BUTTON_LEFT)
-#define CUBE_Z_DEC (BUTTON_SELECT | BUTTON_RIGHT)
+#define CUBE_Z_INC (BUTTON_SELECT | BUTTON_RIGHT)
+#define CUBE_Z_DEC (BUTTON_SELECT | BUTTON_LEFT)
#define CUBE_MODE (BUTTON_SELECT | BUTTON_MENU)
#define CUBE_PAUSE_PRE BUTTON_PLAY
#define CUBE_PAUSE (BUTTON_PLAY | BUTTON_REL)
@@ -370,10 +370,10 @@ static void cube_rotate(int xa, int ya, int za)
{
point3D[i].x = matrice[0][0] * sommet[i].x + matrice[1][0] * sommet[i].y
+ matrice[2][0] * sommet[i].z;
-
+
point3D[i].y = matrice[0][1] * sommet[i].x + matrice[1][1] * sommet[i].y
+ matrice[2][1] * sommet[i].z;
-
+
point3D[i].z = matrice[0][2] * sommet[i].x + matrice[1][2] * sommet[i].y
+ matrice[2][2] * sommet[i].z;
}
@@ -465,7 +465,7 @@ static void cube_draw(void)
}
}
break;
-
+
case WIREFRAME:
for (i = 0; i < 12; i++)
@@ -666,7 +666,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
{
if (ys < 10)
ys++;
- }
+ }
else
{
ya++;