Rev 314 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 314 | Rev 325 | ||
---|---|---|---|
Line 412... | Line 412... | ||
412 | 412 | ||
413 | 413 | ||
- | 414 | ||
Line 414... | Line 415... | ||
414 | 415 | // falltru wanted |
|
415 | // falltru wanted |
416 | case STATEID_SELECT_PARAMSET: |
416 | case STATEID_SELECT_PARAMSET: |
417 | case STATEID_HANDLE_PARAMS: |
Line 519... | Line 520... | ||
519 | { |
520 | { |
520 | case STATEID_SCANNING: |
521 | case STATEID_SCANNING: |
521 | lcd_lines=new String[3]; |
522 | lcd_lines=new String[3]; |
522 | lcd_lines[0]="Scanning for Devices"; |
523 | lcd_lines[0]="Scanning for Devices"; |
523 | lcd_lines[1]=" "; |
524 | lcd_lines[1]=" "; |
524 | lcd_lines[2]="DUBwise v0.36 "; |
525 | lcd_lines[2]="DUBwise v0.37 "; |
525 | mk.close_connections(true); |
526 | mk.close_connections(true); |
Line 526... | Line 527... | ||
526 | 527 | ||
527 | bt_scanner.search(); |
528 | bt_scanner.search(); |
Line -... | Line 529... | ||
- | 529 | break; |
|
- | 530 | ||
- | 531 | case STATEID_HANDLE_PARAMS: |
|
- | 532 | menu_items=new String[2]; |
|
- | 533 | menu_items[0]="write to MK"; |
|
- | 534 | menu_items[1]="Discard"; |
|
- | 535 | lcd_lines=new String[2]; |
|
- | 536 | ||
528 | break; |
537 | break; |
529 | 538 | ||
530 | case STATEID_SELECT_PARAMSET: |
539 | case STATEID_SELECT_PARAMSET: |
531 | menu_items=new String[5]; |
540 | menu_items=new String[5]; |
Line 569... | Line 578... | ||
569 | public void keyPressed(int keyCode) |
578 | public void keyPressed(int keyCode) |
570 | { |
579 | { |
Line 571... | Line 580... | ||
571 | 580 | ||
572 | if (keyCode==KEY_STAR) |
581 | if (keyCode==KEY_STAR) |
- | 582 | { |
|
- | 583 | if (state==STATEID_EDIT_PARAMS) |
|
- | 584 | chg_state(STATEID_HANDLE_PARAMS); |
|
573 | { |
585 | else |
- | 586 | chg_state(STATEID_MAINMENU); |
|
574 | chg_state(STATEID_MAINMENU); |
587 | |
575 | return; |
588 | return; |
576 | } |
589 | } |
577 | if (keyCode==KEY_POUND) |
590 | if (keyCode==KEY_POUND) |
578 | { |
591 | { |
Line 607... | Line 620... | ||
607 | act_motor%=4; |
620 | act_motor%=4; |
608 | break; |
621 | break; |
609 | } |
622 | } |
Line 610... | Line 623... | ||
610 | 623 | ||
- | 624 | break; |
|
- | 625 | case STATEID_HANDLE_PARAMS: |
|
- | 626 | if ( getGameAction (keyCode)==FIRE ) |
|
- | 627 | switch(act_menu_select) |
|
- | 628 | { |
|
- | 629 | case 0: |
|
- | 630 | mk.write_params(); |
|
- | 631 | default: |
|
- | 632 | chg_state(STATEID_MAINMENU); |
|
- | 633 | } |
|
- | 634 | else |
|
- | 635 | menu_keypress(keyCode); |
|
611 | break; |
636 | break; |
612 | case STATEID_MAINMENU: |
637 | case STATEID_MAINMENU: |
613 | if ( getGameAction (keyCode)==FIRE ) |
638 | if ( getGameAction (keyCode)==FIRE ) |
614 | switch(act_menu_select) |
639 | switch(act_menu_select) |