Do not rebuild the lookup table each time the function is called.

This commit is contained in:
Steve Checkoway
2006-12-07 08:17:18 +00:00
parent 971e34e0c7
commit e03934c21f
@@ -14,7 +14,7 @@ REGISTER_INPUT_HANDLER_CLASS( X11 );
static DeviceButton XSymToDeviceButton( int key )
{
#define KEY_INV DeviceButton_Invalid
const DeviceButton ASCIIKeySyms[] =
static const DeviceButton ASCIIKeySyms[] =
{
KEY_INV , KEY_INV , KEY_INV , KEY_INV , KEY_INV , /* 0 - 4 */
KEY_INV , KEY_INV , KEY_INV , KEY_BACK , KEY_TAB , /* 5 - 9 */