| 657 | } |
| 658 | |
| 659 | bool IsTurboModeInputPressed() |
| 660 | { |
| 661 | switch(GCSettings.TurboModeButton) |
| 662 | { |
| 663 | case TURBO_BUTTON_RSTICK: |
| 664 | return ( |
| 665 | userInput[0].pad.substickX > 70 || |
| 666 | userInput[0].WPAD_StickX(1) > 70 || |
| 667 | userInput[0].wiidrcdata.substickX > 45); |
| 668 | case TURBO_BUTTON_A: |
| 669 | return ( |
| 670 | userInput[0].wpad->btns_h & WPAD_CLASSIC_BUTTON_A || |
| 671 | userInput[0].wpad->btns_h & WPAD_BUTTON_A || |
| 672 | userInput[0].pad.btns_h & PAD_BUTTON_A || |
| 673 | userInput[0].wiidrcdata.btns_h & WIIDRC_BUTTON_A); |
| 674 | case TURBO_BUTTON_B: |
| 675 | return ( |
| 676 | userInput[0].wpad->btns_h & WPAD_CLASSIC_BUTTON_B || |
| 677 | userInput[0].wpad->btns_h & WPAD_BUTTON_B || |
| 678 | userInput[0].pad.btns_h & PAD_BUTTON_B || |
| 679 | userInput[0].wiidrcdata.btns_h & WIIDRC_BUTTON_B); |
| 680 | case TURBO_BUTTON_X: |
| 681 | return ( |
| 682 | userInput[0].wpad->btns_h & WPAD_CLASSIC_BUTTON_X || |
| 683 | userInput[0].pad.btns_h & PAD_BUTTON_X || |
| 684 | userInput[0].wiidrcdata.btns_h & WIIDRC_BUTTON_X); |
| 685 | case TURBO_BUTTON_Y: |
| 686 | return ( |
| 687 | userInput[0].wpad->btns_h & WPAD_CLASSIC_BUTTON_Y || |
| 688 | userInput[0].pad.btns_h & PAD_BUTTON_Y || |
| 689 | userInput[0].wiidrcdata.btns_h & WIIDRC_BUTTON_Y); |
| 690 | case TURBO_BUTTON_L: |
| 691 | return ( |
| 692 | userInput[0].wpad->btns_h & WPAD_CLASSIC_BUTTON_FULL_L || |
| 693 | userInput[0].pad.btns_h & PAD_TRIGGER_L || |
| 694 | userInput[0].wiidrcdata.btns_h & WIIDRC_BUTTON_L); |
| 695 | case TURBO_BUTTON_R: |
| 696 | return ( |
| 697 | userInput[0].wpad->btns_h & WPAD_CLASSIC_BUTTON_FULL_R || |
| 698 | userInput[0].pad.btns_h & PAD_TRIGGER_R || |
| 699 | userInput[0].wiidrcdata.btns_h & WIIDRC_BUTTON_R); |
| 700 | case TURBO_BUTTON_ZL: |
| 701 | return ( |
| 702 | userInput[0].wpad->btns_h & WPAD_CLASSIC_BUTTON_ZL || |
| 703 | userInput[0].wiidrcdata.btns_h & WIIDRC_BUTTON_ZL); |
| 704 | case TURBO_BUTTON_ZR: |
| 705 | return ( |
| 706 | userInput[0].wpad->btns_h & WPAD_CLASSIC_BUTTON_ZR || |
| 707 | userInput[0].wiidrcdata.btns_h & WIIDRC_BUTTON_ZR); |
| 708 | case TURBO_BUTTON_Z: |
| 709 | return ( |
| 710 | userInput[0].pad.btns_h & PAD_TRIGGER_Z || |
| 711 | (userInput[0].wpad->exp.type == WPAD_EXP_NUNCHUK && |
| 712 | userInput[0].wpad->btns_h & WPAD_NUNCHUK_BUTTON_Z)); |
| 713 | case TURBO_BUTTON_C: |
| 714 | return ( |
| 715 | userInput[0].wpad->exp.type == WPAD_EXP_NUNCHUK && |
| 716 | userInput[0].wpad->btns_h & WPAD_NUNCHUK_BUTTON_C); |