Rev 223 | Rev 245 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 223 | Rev 242 | ||
---|---|---|---|
Line 141... | Line 141... | ||
141 | 141 | ||
Line 142... | Line 142... | ||
142 | public final static int KEYCODE_CLEAR=-8; |
142 | public final static int KEYCODE_CLEAR=-8; |
Line -... | Line 143... | ||
- | 143 | ||
- | 144 | public boolean editing_number=false; |
|
- | 145 | ||
- | 146 | public void pointer_press(int x,int row) |
|
- | 147 | { |
|
- | 148 | ||
- | 149 | System.out.println("!!!!!!!!!!!!!!row:"+row); |
|
- | 150 | if (select_mode) |
|
- | 151 | { |
|
- | 152 | canvas.act_menu_select=row; |
|
- | 153 | keypress (-4242,Canvas.FIRE); |
|
- | 154 | ||
- | 155 | } |
|
- | 156 | else |
|
- | 157 | { |
|
- | 158 | if ((row%2)==0) |
|
- | 159 | act_y=row+1; |
|
- | 160 | else |
|
- | 161 | { |
|
- | 162 | act_y=row; |
|
- | 163 | ||
- | 164 | if (act_y==(canvas.lcd_lines.length-1)) |
|
- | 165 | keypress (-4242,Canvas.FIRE); |
|
- | 166 | else |
|
- | 167 | { |
|
- | 168 | if (x<(canvas.canvas_width/2)) |
|
- | 169 | keypress (-4242,Canvas.LEFT); |
|
- | 170 | else |
|
- | 171 | keypress (-4242,Canvas.RIGHT); |
|
- | 172 | } |
|
- | 173 | } |
|
- | 174 | } |
|
143 | 175 | } |
|
144 | public boolean editing_number=false; |
176 | |
Line 145... | Line 177... | ||
145 | 177 | ||
146 | public void keypress (int keyCode,int action) |
178 | public void keypress (int keyCode,int action) |
Line 264... | Line 296... | ||
264 | } |
296 | } |
265 | else |
297 | else |
266 | if (action== Canvas.FIRE) |
298 | if (action== Canvas.FIRE) |
267 | { |
299 | { |
268 | act_y=1; |
300 | act_y=1; |
- | 301 | // canvas.act_menu_select=0; |
|
269 | canvas.menu_items[0]=""; |
302 | canvas.menu_items[0]=""; |
270 | select_mode=true; |
303 | select_mode=true; |
Line 271... | Line 304... | ||
271 | 304 | ||
272 | } |
305 | } |