Some Wiimote to Gamepad translations for Wario Land Shake It

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1095 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
John Peterson
2008-11-08 06:31:18 +00:00
parent 3303639a6e
commit 83b8527085
8 changed files with 428 additions and 21 deletions

View File

@ -29,7 +29,7 @@
// On and off
bool g_consoleEnable = true;
int gSaveFile = 0;
#define DEBUGG
#define DEBUG_HLE
// --------------------
@ -40,11 +40,11 @@ int nFiles = 4;
// --------------------
// Create handles
#ifdef DEBUGG
FILE* __fStdOut[4]; // you have to update this manually, we can't place a nFiles in there
#ifdef DEBUG_HLE
FILE* __fStdOut[4]; // you have to update this manually, we can't place a nFiles in there
#endif
#ifdef _WIN32
HANDLE __hStdOut = NULL;
HANDLE __hStdOut = NULL;
#endif
@ -55,8 +55,7 @@ is closed */
// -------------
void startConsoleWin(int width, int height, char* fname)
{
#if defined(DEBUGG) && defined(_WIN32)
#if defined(DEBUG_HLE) defined(_WIN32)
AllocConsole();
@ -84,6 +83,7 @@ void startConsoleWin(int width, int height, char* fname)
}
}
// ---------------
#endif
}
@ -92,7 +92,7 @@ void startConsoleWin(int width, int height, char* fname)
// File printf function
int aprintf(int a, char *fmt, ...)
{
#if defined(DEBUGG) && defined(_WIN32)
#if defined(DEBUG_HLE) && defined(_WIN32)
if(gSaveFile)
{
char s[5000]; // WARNING: mind this value
@ -126,7 +126,7 @@ int aprintf(int a, char *fmt, ...)
// Printf to screen function
int wprintf(char *fmt, ...)
{
#if defined(DEBUGG) && defined(_WIN32)
#if defined(DEBUG_HLE) && defined(_WIN32)
char s[5000]; // WARNING: mind this value
va_list argptr;
int cnt;
@ -151,9 +151,11 @@ int wprintf(char *fmt, ...)
}
// ---------------------------------------------------------------------------------------
// Clear console screen
void ClearScreen()
{
#if defined(DEBUGG) && defined(_WIN32)
#if defined(DEBUG_HLE) && defined(_WIN32)
if(g_consoleEnable)
{
COORD coordScreen = { 0, 0 };
@ -175,7 +177,10 @@ void ClearScreen()
#endif
}
#if defined(DEBUGG) && defined(_WIN32)
// ---------------------------------------------------------------------------------------
// Get window handle of console window to be able to resize it
#if defined(DEBUG_HLE) && defined(_WIN32)
HWND GetConsoleHwnd(void)
{
@ -215,4 +220,4 @@ HWND GetConsoleHwnd(void)
return(hwndFound);
}
#endif // win32
#endif // win32