* (bug 2741) replace K_LAST_KEY with MAX_KEYS. K_LAST_KEY is now defined

at 256 for mod compatability reasons.  ioq3-only mods may
             chose to use MAX_KEYS for checking binds in order to get full
             key support, but at the cost of breaking compatability with
             older clients.

* (bug 2741) remove some lingering 256-key hardcoding

* properly check bounds of keynum in Key_IsDown(), Key_SetBinding(),
  and Key_GetBinding()
This commit is contained in:
Tony J. White = committed 2007-03-22 22:03:00 +00:00
1 parent dce62fbcb4
commit f9bb47d9af
3 files changed
+10 -8

No files matched your search

-2
View File
@@ -21,8 +21,6 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "keycodes.h"
#define MAX_KEYS 384
typedef struct {
qboolean down;
int repeats; // if > 1, it is autorepeating