summaryrefslogtreecommitdiffstats
path: root/src/gba-buttons.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gba-buttons.c')
-rw-r--r--src/gba-buttons.c57
1 files changed, 34 insertions, 23 deletions
diff --git a/src/gba-buttons.c b/src/gba-buttons.c
index cbf6f8b..5a2a6e2 100644
--- a/src/gba-buttons.c
+++ b/src/gba-buttons.c
@@ -55,12 +55,23 @@ u32 gba_btn_startselect_data[] = {
55u32 gba_btn_fx_downup[] = { 55u32 gba_btn_fx_downup[] = {
56 0x00000000, 0x00000000, 0x04000000, 0x00000000, 56 0x00000000, 0x00000000, 0x04000000, 0x00000000,
57 0x40000100, 0x00000000, 0x00000000, 0x00000000, 57 0x40000100, 0x00000000, 0x00000000, 0x00000000,
58 0x00000000, 0x00000000, 0x00000201, 0x00000000, 58 0x00000000, 0x00000000, 0x00020100, 0x00000000,
59 0x00008000, 0x01010000, 0x00000001, 0x00000000, 59 0x00800001, 0x01000000, 0x00000100, 0x00000000,
60 0x00000000, 0x80000000, 0x00000001, 0x00000000, 60 0x00000080, 0x00000000, 0x00000100, 0x00000000,
61 0x00000000, 0x00010100, 0x00000001, 0x02000000, 61 0x00000000, 0x01010000, 0x00000102, 0x00000000,
62 0x00000000, 0x00400000, 0x00000000, 0x00000000, 62 0x00000000, 0x40000000, 0x00000000, 0x00000000,
63 0x00000000, 0x00000001, 0x00000000, 0x00040000, 63 0x00000000, 0x00000100, 0x00000000, 0x04000000,
64};
65
66u32 gba_btn_fx_leftright[] = {
67 0x00000000, 0x00000000, 0x00000100, 0x00000000,
68 0x04000000, 0x00000100, 0x00000000, 0x00000000,
69 0x00000000, 0x00000000, 0x04020000, 0x00000000,
70 0x18000000, 0x00000002, 0x04000000, 0x00000000,
71 0x00000000, 0x00000008, 0x04000000, 0x00000000,
72 0x30000000, 0x00000000, 0x04080000, 0x00000000,
73 0x00000000, 0x00001000, 0x00000000, 0x00000000,
74 0x40000000, 0x00000000, 0x00001000, 0x00000000,
64}; 75};
65 76
66typedef struct SpriteAnimation { 77typedef struct SpriteAnimation {
@@ -109,7 +120,7 @@ typedef struct ObjState {
109 u16 obj_attr_2; 120 u16 obj_attr_2;
110} ObjState; 121} ObjState;
111 122
112AnimationEntry *btn_down_animation[] = { 123AnimationEntry *btn_animation[] = {
113 &(AnimationEntry[]){ 124 &(AnimationEntry[]){
114 {0, 0, 0, 0}, 125 {0, 0, 0, 0},
115 {0, 0, 0, 0}, 126 {0, 0, 0, 0},
@@ -121,23 +132,23 @@ AnimationEntry *btn_down_animation[] = {
121 {0, 2, 0, 0}, 132 {0, 2, 0, 0},
122 }, 133 },
123 &(AnimationEntry[]){ 134 &(AnimationEntry[]){
124 {0, 11, 0, 0}, 135 {0, 0, 0, 0},
125 {0, 11, 0, 0}, 136 {0, 0, 0, 0},
126 {0, 11, 0, 0}, 137 {0, 0, 0, 0},
127 {0, 11, 0, 0}, 138 {0, 0, 0, 0},
128 {0, 11, 0, 0}, 139 {0, 0, 0, 0},
129 {0, 11, 0, 0}, 140 {0, 0, 0, 0},
130 {0, 11, 0, 0}, 141 {0, 0, 0, 0},
131 {0, 11, 0, 0}, 142 {0, 0, 0, 0},
132 }, 143 },
133 &(AnimationEntry[]){ 144 &(AnimationEntry[]){
134 {-8, 17, 0, 1}, 145 {0, 0, 0, 1},
135 {-8, 17, 0, 0}, 146 {0, 0, 0, 0},
136 {-8, 17, 4, 0}, 147 {0, 0, 4, 0},
137 {-8, 17, 4, 0}, 148 {0, 0, 4, 0},
138 {-8, 17, 8, 0}, 149 {0, 0, 8, 0},
139 {-8, 17, 8, 0}, 150 {0, 0, 8, 0},
140 {-8, 17, 12, 0}, 151 {0, 0, 12, 0},
141 {-8, 17, 12, 1}, 152 {0, 0, 12, 1},
142 }, 153 },
143}; 154};