------------------------------------------------------------------------ r2729 | hendricks266 | 2012-06-03 09:12:44 -0700 (Sun, 03 Jun 2012) | 1 line Prevent the reserved cheats from displaying a finished time and from clobbering personal map time records. ------------------------------------------------------------------------ r2728 | hendricks266 | 2012-06-03 09:11:22 -0700 (Sun, 03 Jun 2012) | 15 lines Massive menu input control revamp/cleanup/factor. (added: input.[ch]) New Wii control defaults for the Wii Remote + Nunchuk and the Classic Controller. This includes new code added just so that the Home key brings up the menu in-game, reducing the need for a USB keyboard. On the technical side, raw joystick access (comparable to what is available for keyboard and mouse) is now present in jmact, on the game side. (added: joystick.[ch]) Using this new raw joystick access, I replaced tueidj's hack to map A and B to LMB/RMB and D-Pad Up/Down to the scrollwheel. I made the menus more friendly to mouse and joystick browsing by adding and unifying checks and clears for various buttons and gamefuncs. In fact, the majority of the time spent on this commit was tracking down problems that appeared with the factoring and trying to understand the menu system and the way input checks are precariously executed. In addition, "Press any key or button to continue" now truly means what it says. As a result of incorporating proper raw access into control.c instead of it directly accessing the implementaiton, the program *may* no longer be affected by joystick input when it is out of focus. This follows the pattern set by the mouse, and I think this is a positive change. A small bonus: In the classic/old keyboard preset, the key for Show_Console has been changed from '`' to 'C' because '`' is taken by Quick_Kick. ------------------------------------------------------------------------ r2727 | hendricks266 | 2012-06-03 09:10:08 -0700 (Sun, 03 Jun 2012) | 1 line Bump MAXLEVELS to 64, per user request. ------------------------------------------------------------------------ r2726 | hendricks266 | 2012-06-03 09:09:33 -0700 (Sun, 03 Jun 2012) | 5 lines The handling for grp, con, and def filenames has been massively cleaned up and factored into common.c. A new header, common_game.h, was created because common.h was placed in build/include (see r2542) and we need a common header for things that strictly should not be in the engine. RTS file names were also improved but some of the patterned changes were already made in r2420, and they were not factored because they are strictly part of the game, not the editor. NAM and Napalm can now share their con, def, and rts files if the one for their respective game is not present because the con and rts files are identical. Also, decapitalize two string literals missed in r2540. ------------------------------------------------------------------------ r2725 | hendricks266 | 2012-06-03 09:08:27 -0700 (Sun, 03 Jun 2012) | 1 line Incorporate some use of Bfflush(NULL) in hopes to alleviate Wii configuration saving concerns. ------------------------------------------------------------------------