comparison bindings.c @ 1839:78abbabfd58d

Get Android build working again and update for SDL 2.0.7 (last version to support older versions of Android)
author Michael Pavone <pavone@retrodev.com>
date Sun, 14 Apr 2019 23:37:11 -0700
parents 34370330eaf3
children 30f2821ffd65
comparison
equal deleted inserted replaced
1836:601ef72cc16f 1839:78abbabfd58d
814 hostbutton = render_translate_input_name(hostpadnum, key, 0); 814 hostbutton = render_translate_input_name(hostpadnum, key, 0);
815 if (hostbutton < 0) { 815 if (hostbutton < 0) {
816 if (hostbutton == RENDER_INVALID_NAME) { 816 if (hostbutton == RENDER_INVALID_NAME) {
817 warning("%s is not a valid gamepad input name\n", key); 817 warning("%s is not a valid gamepad input name\n", key);
818 } else if (hostbutton == RENDER_NOT_MAPPED && hostpadnum != map_warning_pad) { 818 } else if (hostbutton == RENDER_NOT_MAPPED && hostpadnum != map_warning_pad) {
819 warning("No SDL 2 mapping exists for input %s on gamepad %d\n", key, hostpadnum); 819 debug_message("No SDL 2 mapping exists for input %s on gamepad %d\n", key, hostpadnum);
820 map_warning_pad = hostpadnum; 820 map_warning_pad = hostpadnum;
821 } 821 }
822 return; 822 return;
823 } 823 }
824 if (hostbutton & RENDER_DPAD_BIT) { 824 if (hostbutton & RENDER_DPAD_BIT) {
861 axis = render_translate_input_name(hostpadnum, key, 1); 861 axis = render_translate_input_name(hostpadnum, key, 1);
862 if (axis < 0) { 862 if (axis < 0) {
863 if (axis == RENDER_INVALID_NAME) { 863 if (axis == RENDER_INVALID_NAME) {
864 warning("%s is not a valid gamepad input name\n", key); 864 warning("%s is not a valid gamepad input name\n", key);
865 } else if (axis == RENDER_NOT_MAPPED && hostpadnum != map_warning_pad) { 865 } else if (axis == RENDER_NOT_MAPPED && hostpadnum != map_warning_pad) {
866 warning("No SDL 2 mapping exists for input %s on gamepad %d\n", key, hostpadnum); 866 debug_message("No SDL 2 mapping exists for input %s on gamepad %d\n", key, hostpadnum);
867 map_warning_pad = hostpadnum; 867 map_warning_pad = hostpadnum;
868 } 868 }
869 goto done; 869 goto done;
870 } 870 }
871 if (axis & RENDER_DPAD_BIT) { 871 if (axis & RENDER_DPAD_BIT) {