@@ -728,7 +728,44 @@ const char *ReturnPlaceholder[] =
728
728
" Return" ,
729
729
};
730
730
731
- char ButtonInputDisplay[] = {' (' , ' )' , ' v' , ' ^' , ' Z' , ' R' , ' L' , ' A' , ' B' , ' X' , ' Y' , ' S' };
731
+ #ifndef TTYD_JP
732
+ const char ButtonInputDisplay[] =
733
+ {
734
+ static_cast <char >(171 ), // Left
735
+ static_cast <char >(187 ), // Right
736
+ static_cast <char >(179 ), // Down
737
+ static_cast <char >(178 ), // Up
738
+ ' Z' ,
739
+ ' R' ,
740
+ ' L' ,
741
+ ' A' ,
742
+ ' B' ,
743
+ ' X' ,
744
+ ' Y' ,
745
+ ' S' ,
746
+ };
747
+ #else
748
+ uint8_t ButtonLeft[] = {0x81 , 0xA9 , 0 };
749
+ uint8_t ButtonRight[] = {0x81 , 0xA8 , 0 };
750
+ uint8_t ButtonDown[] = {0x81 , 0xAB , 0 };
751
+ uint8_t ButtonUp[] = {0x81 , 0xAA , 0 };
752
+
753
+ const char *ButtonInputDisplay[] =
754
+ {
755
+ reinterpret_cast <const char *>(&ButtonLeft),
756
+ reinterpret_cast <const char *>(&ButtonRight),
757
+ reinterpret_cast <const char *>(&ButtonDown),
758
+ reinterpret_cast <const char *>(&ButtonUp),
759
+ " Z" ,
760
+ " R" ,
761
+ " L" ,
762
+ " A" ,
763
+ " B" ,
764
+ " X" ,
765
+ " Y" ,
766
+ " S" ,
767
+ };
768
+ #endif
732
769
733
770
struct Menus Menu[20 ];
734
771
struct Cheats Cheat[18 ];
@@ -948,13 +985,6 @@ void initMenuVars()
948
985
949
986
OnScreenTimer.ButtonCombo [START_PAUSE_RESUME] = PAD_L | PAD_Z;
950
987
OnScreenTimer.ButtonCombo [RESET] = PAD_L | PAD_DPAD_RIGHT;
951
-
952
- #ifndef TTYD_JP
953
- *reinterpret_cast <uint8_t *>(&ButtonInputDisplay[0 ]) = 171 ; // Left
954
- *reinterpret_cast <uint8_t *>(&ButtonInputDisplay[1 ]) = 187 ; // Right
955
- *reinterpret_cast <uint8_t *>(&ButtonInputDisplay[2 ]) = 179 ; // Down
956
- *reinterpret_cast <uint8_t *>(&ButtonInputDisplay[3 ]) = 178 ; // Up
957
- #endif
958
988
}
959
989
960
990
}
0 commit comments