@@ -574,7 +574,7 @@ bool CheatScreen::SharedInput() {
574
574
Mouse::mouse_update = false ;
575
575
while (do_swipe || SDL_PollEvent (&event)) {
576
576
int gx, gy;
577
- SDL_KeyCode simulate_key = SDLK_UNKNOWN;
577
+ SDL_Keycode simulate_key = SDLK_UNKNOWN;
578
578
579
579
//
580
580
if (do_swipe) {
@@ -1007,9 +1007,9 @@ void CheatScreen::SharedMenu() {
1007
1007
AddMenuItem (offsetx + 160 , offsety5 + 9 , SDLK_ESCAPE, " Exit" );
1008
1008
}
1009
1009
1010
- SDL_KeyCode CheatScreen::CheckHotspots (int mx, int my, int radius) {
1010
+ SDL_Keycode CheatScreen::CheckHotspots (int mx, int my, int radius) {
1011
1011
// Find the nearest hotspot
1012
- SDL_KeyCode nearest = SDLK_UNKNOWN;
1012
+ SDL_Keycode nearest = SDLK_UNKNOWN;
1013
1013
int nearestdist = INT_MAX;
1014
1014
1015
1015
for (auto & hs : hotspots) {
@@ -2971,13 +2971,13 @@ void CheatScreen::BusinessMenu(Actor* actor) {
2971
2971
nextx += 8
2972
2972
+ AddMenuItem (
2973
2973
nextx, maxy - offsety - y,
2974
- SDL_KeyCode ( SDLK_a + row) , " Set" );
2974
+ SDLK_a + row, " Set" );
2975
2975
nextx += 8
2976
2976
+ AddMenuItem (
2977
2977
nextx, maxy - offsety - y,
2978
- SDL_KeyCode ( SDLK_i + row) , " Location" );
2978
+ SDLK_i + row, " Location" );
2979
2979
AddMenuItem (
2980
- nextx, maxy - offsety - y, SDL_KeyCode ( SDLK_1 + row) ,
2980
+ nextx, maxy - offsety - y, SDLK_1 + row,
2981
2981
" Clear" );
2982
2982
}
2983
2983
nextx = offsetx;
@@ -4149,7 +4149,7 @@ bool CheatScreen::TeleportCheck() {
4149
4149
}
4150
4150
4151
4151
int CheatScreen::AddMenuItem (
4152
- int offsetx, int offsety, SDL_KeyCode keycode, const char * label) {
4152
+ int offsetx, int offsety, SDL_Keycode keycode, const char * label) {
4153
4153
int keywidth = 8 ;
4154
4154
switch (keycode) {
4155
4155
case SDLK_UP:
@@ -4325,7 +4325,7 @@ void CheatScreen::WaitButtonsUp() {
4325
4325
} break ;
4326
4326
4327
4327
default : {
4328
- // It should be an SDL_KeyCode
4328
+ // It should be an SDL_Keycode
4329
4329
const char * keyname = SDL_GetKeyName (SDL_Keycode (button));
4330
4330
button_name = buf;
4331
4331
0 commit comments