1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +00:00

Merge pull request #72 from dpogue/mingw

Partial MinGW
This commit is contained in:
2011-08-27 12:26:36 -07:00
77 changed files with 553 additions and 414 deletions

View File

@ -97,13 +97,13 @@ enum
struct Win32keyConvert
{
UInt32 fVKey;
char* fKeyName;
const char* fKeyName;
};
struct CommandConvert
{
ControlEventCode fCode;
char* fDesc;
const char* fDesc;
};

View File

@ -501,7 +501,7 @@ void plKeyMap::EraseBinding( ControlEventCode code )
}
char* plKeyMap::ConvertVKeyToChar( UInt32 vk )
const char* plKeyMap::ConvertVKeyToChar( UInt32 vk )
{
Win32keyConvert* keyConvert = &fKeyConversionEnglish[0];
switch (plLocalization::GetLanguage())
@ -1093,4 +1093,4 @@ CommandConvert plInputMap::fCmdConvert[] =
{ END_CONTROLS, ""},
};
};

View File

@ -33,6 +33,20 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include <windows.h>
#define VK_BACK_QUOTE 0xc0
// MinGW is missing these definitions:
#ifndef VK_OEM_PLUS
#define VK_OEM_PLUS 0xBB
#endif
#ifndef VK_OEM_COMMA
#define VK_OEM_COMMA 0xBC
#endif
#ifndef VK_OEM_MINUS
#define VK_OEM_MINUS 0xBD
#endif
#ifndef VK_OEM_PERIOD
#define VK_OEM_PERIOD 0xBE
#endif
//
// keyboard definitions:
//

View File

@ -208,7 +208,7 @@ class plKeyMap : public plInputMap
const plKeyBinding &GetBinding( UInt32 i ) const { return *fBindings[ i ]; }
void HandleAutoDualBinding( plKeyDef key1, plKeyDef key2 );
static char *ConvertVKeyToChar( UInt32 vk );
static const char* ConvertVKeyToChar( UInt32 vk );
static plKeyDef ConvertCharToVKey( const char *c );
static Win32keyConvert fKeyConversionEnglish[];